1
0
mirror of https://github.com/django/django.git synced 2025-10-29 16:46:11 +00:00

Updated null_queries tests to avoid clashing with the __second lookup.

This commit is contained in:
Aymeric Augustin
2013-02-11 10:05:55 +01:00
parent c01bbb3235
commit 104d82a777
2 changed files with 5 additions and 4 deletions

View File

@@ -28,4 +28,5 @@ class OuterB(models.Model):
class Inner(models.Model):
first = models.ForeignKey(OuterA)
second = models.ForeignKey(OuterB, null=True)
# second would clash with the __second lookup.
third = models.ForeignKey(OuterB, null=True)