Hacked By AnonymousFox
"""
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)]
Hacked By AnonymousFox1.0, Coded By AnonymousFox