Moved choices inside of a test model per coding style.

Follow up to 3a4558b84f.
This commit is contained in:
oliver 2019-03-21 00:05:26 +09:00 committed by Tim Graham
parent 55490ac746
commit 638d5ea375
1 changed files with 4 additions and 5 deletions

View File

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