2014-01-20 10:45:21 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2016-03-18 22:24:13 +08:00
|
|
|
from django.core.checks import register
|
2013-08-12 04:19:09 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2013-11-03 12:36:09 +08:00
|
|
|
|
2014-01-20 10:45:21 +08:00
|
|
|
class SimpleModel(models.Model):
|
|
|
|
field = models.IntegerField()
|
|
|
|
manager = models.manager.Manager()
|
2016-03-18 22:24:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
@register('tests')
|
|
|
|
def my_check(app_configs, **kwargs):
|
|
|
|
my_check.did_run = True
|
|
|
|
return []
|
|
|
|
|
|
|
|
|
|
|
|
my_check.did_run = False
|