#30126: Incorrect validation of forms.DecimalField
----------------------------------+--------------------------------------
     Reporter:  Roman Paranichev  |                    Owner:  nobody
         Type:  Bug               |                   Status:  closed
    Component:  Forms             |                  Version:  2.1
     Severity:  Normal            |               Resolution:  invalid
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * type:  Uncategorized => Bug
 * resolution:   => invalid


Comment:

 As I said in #30125, please try with `min_value=Decimal('0.02')` -- floats
 like 0.02 may not keep precision. Ideally, you would debug the issue
 yourself and explain where the issue is. Also, try to put together a more
 minimal example that reproduces the issue. For example,
 `@method_decorator(login_required, name='dispatch')` isn't required.
 Please reopen if you investigate further and find Django at fault.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30126#comment:2>
Django <https://code.djangoproject.com/>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.f6bc872bde9e3085fac2596ae77aa547%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to