#17147: DecimalField causes inline formsets to disappear -------------------------------+-------------------------------------- Reporter: leith.john@… | Owner: nobody Type: Bug | Status: new Component: Forms | Version: 1.2 Severity: Normal | Resolution: Keywords: admin formset | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Changes (by julien):
* needs_docs: => 0 * needs_tests: => 0 * needs_better_patch: => 0 Comment: Raising a `ValidationError` is actually the way to return an error message to the user. Note that `models.fields.DecimalField.to_python()` catches a different error (`decimal.InvalidOperation`). Maybe the form field should also catch `decimal.InvalidOperation` instead of `DecimalException`. Could you please provide a minimal test case reproducing the problem you're facing? -- Ticket URL: <https://code.djangoproject.com/ticket/17147#comment:1> 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.