#16539: ModelForms ignore default values when value is not supplied --------------------------------------+---------------------------- Reporter: semarjt@… | Owner: nobody Type: Bug | Status: new Milestone: | Component: Forms Version: 1.3 | Severity: Normal Resolution: | Keywords: Model|Form Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 1 UI/UX: 0 | --------------------------------------+----------------------------
Comment (by anonymous): I have the same problem. I think the problem is not in ModelForm, but in creating databse tables for models (syncdb command may be). I have model with amount field (see declaration below) and after run manage.py syncdb in my MySQL database this field has not default value. {{{ amount = models.DecimalField(_('amount'), \ decimal_places=2, max_digits=10, \ blank=True, default=0) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/16539#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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.