mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Moved choices inside of a test model per coding style.
Follow up to 3a4558b84f.
			
			
This commit is contained in:
		| @@ -1,12 +1,11 @@ | ||||
| from django.db import models | ||||
|  | ||||
| CHOICES = ( | ||||
|     (1, 'first'), | ||||
|     (2, 'second'), | ||||
| ) | ||||
|  | ||||
|  | ||||
| class Article(models.Model): | ||||
|     CHOICES = ( | ||||
|         (1, 'first'), | ||||
|         (2, 'second'), | ||||
|     ) | ||||
|     headline = models.CharField(max_length=100, default='Default headline') | ||||
|     pub_date = models.DateTimeField() | ||||
|     status = models.IntegerField(blank=True, null=True, choices=CHOICES) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user