#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 kmtracey):
From what I can tell, this is not related to #8562. The main problem
there seems to be the inline forms for a one-to-one field do not have a
hidden field containing the pk value for the inline-edited object. This
one has to do with what is displayed for a !ForeignKey field where
to_field has been specified. The two don't seem to overlap.
Fixed the patch so the !ForeignKeyRawIdWidget's render doesn't crash when
it's actually a !ManyToManyRawIdWidget being rendered. Does this need
tests? I could look into writing a couple but confirmation I'm in the
right neighborhood of a correct fix for this would be helpful first.
--
Ticket URL: <http://code.djangoproject.com/ticket/8648#comment:5>
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
-~----------~----~----~----~------~----~------~--~---