#10252: Can't use id as a field name for parent_link in a child model
---------------------------------------------------+------------------------
          Reporter:  kmtracey                      |         Owner:  mtredinnick
            Status:  new                           |     Milestone:             
         Component:  Database layer (models, ORM)  |       Version:  1.0        
        Resolution:                                |      Keywords:             
             Stage:  Accepted                      |     Has_patch:  0          
        Needs_docs:  0                             |   Needs_tests:  0          
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by mtredinnick):

 Okay, that was a lot harder to diagnose than it looks in the final
 analysis. I'm thinking you can work out the next one of those that comes
 along, Karen. :-)

 The problem was that the `id` attribute on the child model was shadowing
 the `id` of the parent and things were going wonky. We really can't handle
 overriding attributes that are `Fields`; it doesn't work in a lot of
 places. So I'm making it a really bad error if you do. It was already not
 working reliably, just not raising an error. So this will look like a
 severe change to people who do it, but we're saving them from themselves.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10252#comment:4>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to