#2684: Backwards relations (ie. xxx_set) across different apps needs voodoo 
magic
to work
------------------------------+---------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian
     Type:  defect            |       Status:  new   
 Priority:  normal            |    Milestone:        
Component:  Core framework    |      Version:        
 Severity:  normal            |   Resolution:        
 Keywords:                    |  
------------------------------+---------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Update:
 
 If you do the following:
 
 'Photo.objects.all()[0].article_set.all()' without importing 'Article',
 you will get an AttributeError on 'article_set'.
 
 However, if you do this instead:
 
 'Photo.objects.get(id=1).article_set.all()' without importing 'Article',
 the 'article_set' attribute works perfectly!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2684>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to