« Return to Thread: [Django] #11448: Defining relationships after querying a model does not add a reverse lookup to the referenced model

Re: [Django] #11448: Defining relationships after querying a model does not add a reverse lookup to the referenced model

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

#11448: Defining relationships after querying a model does not add a reverse lookup
to the referenced model
---------------------------------------------------+------------------------
          Reporter:  Dennis Kaarsemaker            |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  SVN  
        Resolution:                                |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  0    
        Needs_docs:  0                             |   Needs_tests:  0    
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by Dennis Kaarsemaker):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Manually deleting the _related_objects_cache (and for good measure the
 _related_many_to_many_cache) works around the problem. I'd rather see
 django do that when defining a new model. Patch to follow soon.

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

 « Return to Thread: [Django] #11448: Defining relationships after querying a model does not add a reverse lookup to the referenced model