Skip to content

Commit 8e44dd8

Browse files
jpulecatodorov
authored andcommitted
Add Reverse Related Manager Test
1 parent ec90c46 commit 8e44dd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pylint_django/tests/input/func_noerror_foreign_key_sets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def get_others(self):
1515
def get_first(self):
1616
return self.othermodel_set.first()
1717

18+
def othermodel_update_or_create(self):
19+
return self.othermodel_set.update_or_create()
20+
1821

1922
class OtherModel(models.Model):
2023
count = models.IntegerField()

0 commit comments

Comments
 (0)