#15355: Choices on ForeignKey in Inlines not limited to the model constraints
------------------------------------------------+---------------------------
Reporter: Stan | Owner: nobody
Status: closed | Milestone:
Component: django.contrib.admin | Version: 1.3-beta
Resolution: invalid | Keywords: inline
foreignkey admin
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
------------------------------------------------+---------------------------
Changes (by ramiro):
* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
There is no direct relation between your `EmailAdvertisorInline` and
`AdvertisorOffice` models so there is no way to get a selecte field there.
As posted, the code seems to be have been stripped from some helpful
fields (at least one field in `Address` or `Advertisor` would do) and
still have an unneeded extra field (`EmailAdvertisor.support`), also
`select_related` options are needed in the `EmailAdvertisorInline` FKs.
Also, ordering of the !Inlines and !ModelAdmin definitions don't give a
working admin setup.
Reopen if you can refactor your sample code to demonstrate the issue you
want to report, and please try to really to extract/reduce it to a working
case so somebody can triage the ticket without having to guess and spend
time trying to adapt it to pass validation.
--
Ticket URL: <http://code.djangoproject.com/ticket/15355#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 [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.