#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: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by Dennis Kaarsemaker):
* has_patch: 0 => 1
Comment:
Attached patch clears the relevant _related_*_cache in
contribute_to_related_class of OneToOneField, ManyToManyField and
ForeignKey. This makes new relationships visible even if a query that
triggers filling this cache has been executed beforehand. Tested against
the test project (and another, proprietary, one).
--
Ticket URL: <
http://code.djangoproject.com/ticket/11448#comment:2>
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-~----------~----~----~----~------~----~------~--~---