Skip to content

Commit cbf52a3

Browse files
authored
Avoided using same related name twice in tests models (#1086)
1 parent 897305c commit cbf52a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class NestedRelatedSource(DJAModel):
4646
fk_source = models.ForeignKey(
4747
ForeignKeySource, related_name="nested_source", on_delete=models.CASCADE
4848
)
49-
m2m_target = models.ManyToManyField(ManyToManySource, related_name="nested_source")
49+
m2m_target = models.ManyToManyField(ManyToManySource, related_name="nested_target")
5050
fk_target = models.ForeignKey(
51-
ForeignKeySource, related_name="nested_source", on_delete=models.CASCADE
51+
ForeignKeySource, related_name="nested_target", on_delete=models.CASCADE
5252
)

0 commit comments

Comments
 (0)