Skip to content
Browse files

Add related_name to avoid foreign key name conflict in model with dou…

…ble foreign keys
  • Loading branch information...
romgar committed Aug 23, 2016
1 parent b48c234 commit 7daa72b7fd237b06d82befd045306191dc237794
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/
@@ -105,4 +105,4 @@ class TestModelWithoutM2MCheck(DirtyFieldsMixin, models.Model):

class TestDoubleForeignKeyModel(DirtyFieldsMixin, models.Model):
fkey1 = models.ForeignKey(TestModel)
fkey2 = models.ForeignKey(TestModel, null=True)
fkey2 = models.ForeignKey(TestModel, null=True, related_name='fkey2')

0 comments on commit 7daa72b

Please sign in to comment.
You can’t perform that action at this time.