🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 03:53:10 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pylint_django
/
tests
/
input
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/pylint_django/tests/input
🔄 Refresh
✏️
Editing: func_noerror_model_methods.py
Read Only
""" Checks that Pylint does not complain about using Model and Manager methods """ # pylint: disable=missing-docstring from django.db import models class SomeModel(models.Model): name = models.CharField(max_length=64) if __name__ == "__main__": MODEL = SomeModel() MODEL.save() MODEL.delete() COUNT = SomeModel.objects.count() # added in django 1.6 FIRST = SomeModel.objects.first() LAST = SomeModel.objects.last() DB_RECORD, CREATED = SomeModel.objects.get_or_create(name="Tester") EXCLUDED_IDS = [obj.pk for obj in SomeModel.objects.exclude(name__isnull=True)]
💾 Save Changes
❌ Cancel