Ticket #3275: test_depth_bug.diff
File test_depth_bug.diff, 622 bytes (added by , 18 years ago) |
---|
-
tests/modeltests/select_related/models.py
147 147 >>> len(db.connection.queries) 148 148 5 149 149 150 # Test the bug with select_related and extra combination 151 >>> s = Species.objects.all().select_related(depth=1).extra(select={'a': 'select_related_species.id + 10'})[0] 152 153 # With the correct code the result should be True 154 >>> s.id + 10 == s.a 155 True 156 150 157 # Reset DEBUG to where we found it. 151 158 >>> settings.DEBUG = False 152 159 """}