Your code looks good to me.
Maybe you need to restart apache (or similar)?
This is typically the format I use for choice fields:
LIVE_STATUS = 1
DRAFT_STATUS = 2
HIDDEN_STATUS = 3
STATUS_CHOICES = (
(LIVE_STATUS, u'Live'),
(DRAFT_STATUS, u'Draft'),
(HIDDEN_STATUS, u'Hidden'),
)
status = models.IntegerField(_(u'status'), choices=STATUS_CHOICES,
default=LIVE_STATUS)
Which is a technique taken from:
<http://www.b-list.org/weblog/2007/nov/02/handle-choices-right-way/>
Maybe that article will help?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.