Skip to content

Commit 57c2fa5

Browse files
committed
Add test for objects.exclude(). Closes #177
1 parent b1f829f commit 57c2fa5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pylint_django/tests/input/func_noerror_model_methods.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ class SomeModel(models.Model):
2020
LAST = SomeModel.objects.last()
2121

2222
DB_RECORD, CREATED = SomeModel.objects.get_or_create(name='Tester')
23+
EXCLUDED_IDS = [obj.pk for obj in SomeModel.objects.exclude(name__isnull=True)]

0 commit comments

Comments
 (0)