Re: [Django] #26459: DecimalField float rounding

2016-04-05 Thread Django
#26459: DecimalField float rounding
-+-
 Reporter:  yasondinalt  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.9
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * needs_tests:  1 => 0


Comment:

 I'm not sure whether or not to accept the ticket so I asked for advice on
 the [https://groups.google.com/d/topic/django-
 developers/bnoVTOx2GFs/discussion django-developers mailing list].

 p.s. You don't need to attach patches on the ticket when you also send a
 [https://github.com/django/django/pull/6410 pull request].

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.9655de126f4386bcec2cd3ab57839125%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-05 Thread Django
#26459: DecimalField float rounding
-+-
 Reporter:  yasondinalt  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.9
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by yasondinalt):

 * Attachment "0001-DecimalField-rounding-first-cast-to-str-then-use-
 ROU.patch" added.

 Changes

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.989f769e40b9760fca10dde93813cd98%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-05 Thread Django
#26459: DecimalField float rounding
-+-
 Reporter:  yasondinalt  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.9
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by yasondinalt):

 Replying to [comment:2 timgraham]:
 > Could you give a snippet of the application code where you run into this
 issue?


 {{{
 class Invoice(models.Model):
 # same as django-paypal use
 mc_gross = models.DecimalField(max_digits=64, decimal_places=2,
 default=0)

 invoice = 10.215 # float
 invoice.save()
 }}}

 In DB will be value 10.21 (or if 10.225 -> 10.22)

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.8d698046611847efc95d6be6a59c26fc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-04 Thread Django
#26459: DecimalField float rounding
-+-
 Reporter:  yasondinalt  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.9
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by timgraham):

 Could you give a snippet of the application code where you run into this
 issue?

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.bd4296b86e182fd290dcc2424468b45f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-04 Thread Django
#26459: DecimalField float rounding
-+-
 Reporter:  yasondinalt  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.9
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by yasondinalt):

 * Attachment "0001-tests-format-float-to-Decimal-with-proper-
 rounding.patch" added.

 Tests

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.f09637422215dc25e4b5ed09585bee7c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-04 Thread Django
#26459: DecimalField float rounding
-+-
 Reporter:  yasondinalt  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.9
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by yasondinalt):

 * needs_better_patch:   => 0
 * needs_tests:   => 1
 * needs_docs:   => 0


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.ce2e7c2ad1520d4996bb878dcf9f86c7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-04 Thread Django
#26459: DecimalField float rounding
--+
 Reporter:  yasondinalt   |  Owner:  nobody
 Type:  Bug   | Status:  new
Component:  Database layer (models, ORM)  |Version:  1.9
 Severity:  Normal| Resolution:
 Keywords:|   Triage Stage:  Unreviewed
Has patch:  1 |  Easy pickings:  0
UI/UX:  0 |
--+
Changes (by yasondinalt):

 * Attachment "0001-tests-format-float-to-Decimal-with-proper-
 rounding.patch" added.

 Tests

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.482498743d066ec01cf0ecc256675d26%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26459: DecimalField float rounding

2016-04-04 Thread Django
#26459: DecimalField float rounding
--+
 Reporter:  yasondinalt   |  Owner:  nobody
 Type:  Bug   | Status:  new
Component:  Database layer (models, ORM)  |Version:  1.9
 Severity:  Normal| Resolution:
 Keywords:|   Triage Stage:  Unreviewed
Has patch:  1 |  Easy pickings:  0
UI/UX:  0 |
--+
Changes (by yasondinalt):

 * Attachment "0001-DecimalField-rounding-first-cast-to-str-then-use-
 ROU.patch" added.

 Changes

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.4d77e71e1ca80f0d6c3b555f141109eb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.