mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			369 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			369 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # -*- 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
 |