Kaydet (Commit) 638d5ea3 authored tarafından oliver's avatar oliver Kaydeden (comit) Tim Graham

Moved choices inside of a test model per coding style.

Follow up to 3a4558b8.
üst 55490ac7
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment