#12698: ValidationError requires dict() to function properly ---------------------------------------------------+------------------------ Reporter: orokusaki | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: SVN Resolution: | Keywords: core.exceptions, core.forms.models Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by orokusaki):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: I changed line 320 of django.forms.models (just as an ad hoc temp solution) to see if it'd change anything, and it did. I changed it to: {{{ self._update_errors(dict([['key', v] for v in e.messages])) }}} One thing I forgot to mention in my ticket was my code that caused the problem, well here it is: {{{ class FooModel(models.Model): def clean(self): raise ValidationError('Some string error value.') }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12698#comment:1> Django <http://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-upda...@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.