#12881: Unique constraint error with model inheritance while ModelForm should
not
validate
---------------------------------------------------+------------------------
Reporter: fgaudin | Owner: nobody
Status: closed | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.1
Resolution: fixed | Keywords: unique
constraint, ModelForm, inheritance
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by kmtracey):
Though this problem afflicts 1.1.X as well, backporting the fix is not
trivial. Subsequent to 1.1 all the unique validation logic has been moved
from the !ModelForm code into the base Model code. Moving the logic of
this fix (which relies on internals of model data structures) back out to
the !ModelForm class is decidedly ugly, so at present I'm inclined to
leave this as a 1.2-only fix.
--
Ticket URL: <http://code.djangoproject.com/ticket/12881#comment:10>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.