Changes between Initial Version and Version 1 of Ticket #11199
- Timestamp:
- May 25, 2009, 10:34:36 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11199 – Description
initial v1 1 1 You have a model like: 2 2 {{{ 3 3 class Driver: 4 4 name = models.CharField(max_length=100) … … 7 7 name = models.CharField(max_length=100) 8 8 driver = models.ForeignKey(Driver) 9 9 }}} 10 10 Inside 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. 11 11 12 12 Than just try: 13 {{{ 13 14 Car.objects.filter(name = 'something').select_related() 14 15 }}} 15 16 and you will get empty queryset when evaluated. 16 17