Changes between Initial Version and Version 1 of Ticket #11199


Ignore:
Timestamp:
May 25, 2009, 10:34:36 AM (16 years ago)
Author:
Alex Gaynor
Comment:

Please use preview.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11199 – Description

    initial v1  
    11You have a model like:
    2 
     2{{{
    33class Driver:
    44    name = models.CharField(max_length=100)
     
    77    name = models.CharField(max_length=100)
    88    driver = models.ForeignKey(Driver)
    9 
     9}}}
    1010Inside the database mangle the fkey from car to driver as nullable and insert some records into car table without the reference to the driver table.
    1111
    1212Than just try:
     13{{{
    1314Car.objects.filter(name = 'something').select_related()
    14 
     15}}}
    1516and you will get empty queryset when evaluated.
    1617
Back to Top