#8648: Admin ignores to_field on ForeignKey
--------------------------------------+-------------------------------------
Reporter: kmtracey | Owner: nobody
Status: new | Milestone: 1.0
Component: Admin interface | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by brosner):
I suspect that the patch here doesn't solve the problem in the right
place. Does this problem exist a level up in ```ModelChoiceField``` too? I
was looking through tests and it appears there isn't any that test the
output of a field/widget combo. It appears that is where this needs to be
tested. However, this is much easier to work with in the admin like the
patch provides since we are controlling the widget and the widget used in
a ```ModelChoiceField``` is a standard don't care about the database
widget. This is seeming a bit more tricky than what it looks.
--
Ticket URL: <http://code.djangoproject.com/ticket/8648#comment:7>
Django Code <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
-~----------~----~----~----~------~----~------~--~---