#22272: model.DecimalField with decimal_places=0 -------------------------------------+------------------------------------- Reporter: merb | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: (models, ORM) | 1.7-alpha-2 Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 1 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by merb):
* needs_better_patch: 0 => 1 Comment: Currently this patch needs improvement since: max_digits needs to be positive in the PostgreSQL documentation (I think in other databases this max_digits needs to be positive as well) http://www.postgresql.org/docs/9.3/static/datatype-numeric.html Also MySQL needs a positive value for max_digits aswell. Only decimal_places could be zero or positive. {{{ http://www.postgresql.org/docs/9.3/static/datatype-numeric.html }}} -- Ticket URL: <https://code.djangoproject.com/ticket/22272#comment:5> 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 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/062.2d1feb33d3c44110b2987e46719be633%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.