#2269: limit_choices_to should use to_field
----------------------------+-----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: Core framework | Version: SVN
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by adrian):
Here are the example models rewritten with correct syntax:
{{{
class Blupp(models.Model):
kind = models.IntegerField()
another_key = models.IntegerField()
class Blipp(models.Model):
wont_work = models.ForeignKey(Blupp, limit_choices_to={'kind__exact':
1}, to_field='another_key')
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/2269>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---