diff options
Diffstat (limited to 'tests/check_framework/models.py')
| -rw-r--r-- | tests/check_framework/models.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check_framework/models.py b/tests/check_framework/models.py index 3b17332411..fe573fce84 100644 --- a/tests/check_framework/models.py +++ b/tests/check_framework/models.py @@ -1,9 +1,19 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +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 |
