Fixed #25415 -- Made DiscoverRunner run system checks.

This commit is contained in:
Adam Chainz 2016-03-18 14:24:13 +00:00 committed by Tim Graham
parent 391c450fba
commit 5eff8a7783
7 changed files with 42 additions and 1 deletions

View file

@ -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