1
0
mirror of https://github.com/django/django.git synced 2024-12-28 12:06:22 +00:00
django/tests/check_framework/models.py
2022-02-07 20:37:05 +01:00

17 lines
304 B
Python

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