#12167: related objects should not trigger db query on reverese related lookup ---------------------------+------------------------------------------------ Reporter: Suor | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.1 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ I'm having smth like: {{{ class Place(models.Model): pass
class Flank(models.Model): place = models.ForeignKey(Place, related_name='flanks') }}} loading place from db: {{{ p = Place.objects.get(pk=...) flanks = p.flanks.all() flanks[0].place # Should not trigger db query ! }}} Also, it {{{flanks[0].place}}} should be the same as {{{p}}}. I realize this issue relates to #17, but nobody knows when that will be solved. And fixing this seems easy. -- Ticket URL: <http://code.djangoproject.com/ticket/12167> 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 -~----------~----~----~----~------~----~------~--~---