mirror of
https://github.com/django/django.git
synced 2025-07-23 21:25:40 +00:00
Fixed #25415 -- Made DiscoverRunner run system checks.
This commit is contained in:
parent
391c450fba
commit
5eff8a7783
7 changed files with 42 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue