« 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:  Accepted                      |     Has_patch:  1    
        Needs_docs:  0                             |   Needs_tests:  1    
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by Dennis Kaarsemaker):

 1. That's my coding style slipping though, will fix
 2. I followed the style in get_all_related_objects_with_model, but agree
 that a hasattr() reads better.
 3. I'm very unfamiliar with django's test setup. Can you point me to some
 documentation?

--
Ticket URL: <http://code.djangoproject.com/ticket/11448#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@...
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