Hi every one..
i got a problem.. please help me..
I create a class for my model, in that class i declare an property
gender and i make it as enum..
it stores M or F only to the database. the sample code is shown
bellow..
GENDER_CHOICES = (
(u'M', u'Male'),
(u'F', u'Female'),
)
class Player:
-----
gender = models.CharField(max_length=2, choices=GENDER_CHOICES,
null=True, blank=True)
-----
The problem is, i want to get the fields from data base , it returns
only M or F.. but i want the real values that is Male and Female..
how to achieve this one.. please help me..
thank you..
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en.