Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
from django.core.checks import register
from django.db import models
class SimpleModel(models.Model):
field = models.IntegerField()
manager = models.manager.Manager()
@register("tests")
def my_check(app_configs, **kwargs):
my_check.did_run = True
return []
my_check.did_run = False