#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 SmileyChris):

 Replying to [comment:10 kmtracey]:
 > Replying to [comment:9 SmileyChris]:
 > > Taking a step back, it seems that the choices should be using the
 `to_field` as it's key rather than the primary key. I attached a patch
 (with tests) which does this.
 >
 > I verified that works for the default case, but there's still a problem
 (same exception as without the patch) if that field is included in
 `raw_id_fields`.  Attempting to bring up a change page for an Inventory
 with non-null parent, I get: [...]

 Ok, I'm uploading a fix for that too...

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8648#comment:11>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to