#11381: select_related over nullable ForeignKey using GeoQuerySet and GeoManager
gives blank object rather than None
-----------------------------------+----------------------------------------
          Reporter:  bretthoerner  |         Owner:  nobody                     
            
            Status:  new           |     Milestone:  1.1                        
            
         Component:  GIS           |       Version:  1.1-beta-1                 
            
        Resolution:                |      Keywords:  geodjango geo 
select_related geomanager
             Stage:  Unreviewed    |     Has_patch:  0                          
            
        Needs_docs:  0             |   Needs_tests:  0                          
            
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by dgouldin):

 Looks like the row being passed to django.db.models.query.get_cached_row
 is a list, not a tuple, which causes fields == (None,) * field_count to
 always fail.  Thus obj is instantiated at times it should be set to None.

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

Reply via email to