Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2018-01-26 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+-
 Reporter:  Maksim Iakovlev  |Owner:  Josh
 |  Schneier
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Please open a new ticket as the fix for this ticket has been released.

-- 
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/067.ad786e5c102dad1db412f6add3527cdc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2018-01-26 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+-
 Reporter:  Maksim Iakovlev  |Owner:  Josh
 |  Schneier
 Type:  Bug  |   Status:  new
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Josh Harwood):

 * status:  closed => new
 * resolution:  fixed =>


Comment:

 Running version Django==2.0.1

 With Example form

 {{{
 class UpdateBalanceForm(forms.Form):
 id = forms.ModelChoiceField(ProductPortfolio.objects.all(),
 required=True)
 balance = forms.DecimalField(decimal_places=2, max_digits=16,
 required=True)
 }}}

 Running the following you get

 {{{
 form = UpdateBalanceForm({'id':1,
 'balance':Decimal('5.420575188741E-12')})
 form.is_valid()
 False
 form.errors
 {'id': ['Select a valid choice. That choice is not one of the available
 choices.'], 'balance': ['Ensure that there are no more than 16 digits in
 total.']}
 }}}

 This is surprising because the value has 13 digits minus the scientific
 notation

-- 
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/067.262e1195dbc8b474dfcc667521607970%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2017-09-27 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+-
 Reporter:  Maksim Iakovlev  |Owner:  Josh
 |  Schneier
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"7c6590af5f199c9ede970758877b5c1eb7e9b3a6" 7c6590af]:
 {{{
 #!CommitTicketReference repository=""
 revision="7c6590af5f199c9ede970758877b5c1eb7e9b3a6"
 [2.0.x] Fixed #28562 -- Fixed DecimalValidator handling of positive
 exponent scientific notation.

 Backport of e8c45963296eb8bf3938bf9ece30b585a8cbb097 from master
 }}}

-- 
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/067.535e77c1bcd8a0f24940909419261bac%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2017-09-27 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+-
 Reporter:  Maksim Iakovlev  |Owner:  Josh
 |  Schneier
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e8c45963296eb8bf3938bf9ece30b585a8cbb097" e8c45963]:
 {{{
 #!CommitTicketReference repository=""
 revision="e8c45963296eb8bf3938bf9ece30b585a8cbb097"
 Fixed #28562 -- Fixed DecimalValidator handling of positive exponent
 scientific notation.
 }}}

-- 
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/067.5c6ce440d6f30df22475bbe11eb8b4c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2017-09-09 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+-
 Reporter:  Maksim Iakovlev  |Owner:  Josh
 |  Schneier
 Type:  Bug  |   Status:  assigned
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Martin):

 * cc: Tim Martin (added)
 * stage:  Accepted => Ready for checkin


-- 
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/067.403c64be85e4e2621ce2abdbaf3f7cbf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2017-09-03 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+-
 Reporter:  Maksim Iakovlev  |Owner:  Josh Schneier
 Type:  Bug  |   Status:  assigned
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Josh Schneier):

 * owner:  nobody => Josh Schneier
 * status:  new => assigned
 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/9015 PR]

-- 
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/067.ecd448fe2a572442259e9f9b09270bb2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2017-09-02 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
-+
 Reporter:  Maksim Iakovlev  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Josh Schneier):

 * type:  Uncategorized => Bug
 * version:  1.11 => master
 * component:  Uncategorized => Core (Other)
 * stage:  Unreviewed => Accepted


-- 
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/067.b75aaba3714afae10118da87eb09102f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #28562: DecimalValidator raises ValidationError for decimals in scientific notation

2017-09-02 Thread Django
#28562: DecimalValidator raises ValidationError for decimals in scientific 
notation
---+
   Reporter:  Maksim Iakovlev  |  Owner:  nobody
   Type:  Uncategorized| Status:  new
  Component:  Uncategorized|Version:  1.11
   Severity:  Normal   |   Keywords:
   Triage Stage:  Unreviewed   |  Has patch:  0
Needs documentation:  0|Needs tests:  0
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  0|
---+
 {{{
 >>> validator = DecimalValidator(20, 2)
 >>> value = Decimal('7.42403889818E+17')
 >>> try:
 ... validator(value)
 ... except Exception as e:
 ... print(e)
 ...
 [u'Ensure that there are no more than 2 decimal places.']
 >>> value = Decimal(74240388981800)
 >>> try:
 ... validator(value)
 ... except Exception as e:
 ... print(e)
 ...
 >>>
 }}}

-- 
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/052.22ed806c648d88e649d0131411ff0108%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.