#11702: ForeignKey validation should check that to_field is unique
---------------------------------------------------+------------------------
Reporter: physicsnick | Owner:
marcosmoyano
Status: closed | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.1
Resolution: fixed | Keywords: pycamp2010
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
---------------------------------------------------+------------------------
Changes (by marcosmoyano):
* status: assigned => closed
* resolution: => fixed
Comment:
New patch. Moved validation code to django.core.management.validation and
add test suite.
I think the validation could be clearear and simpler if we add a line like
this:
self.to_field = to_field
in django.db.models.fields.related on ForeignKey __init__ method.
--
Ticket URL: <http://code.djangoproject.com/ticket/11702#comment:5>
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.