Hi, I'm creating a model with a field as follows:
trackno = models.PositiveSmallIntegerField(choices=SONGNO_CHOICES)
I try to create the SONGNO_CHOICES tuple with this code:
dict = {}
j = 0
while j<100:
dict[j]=(j,j+1)
j=j+1
SONGNO_CHOICES = dict
When a try to validate my model, Djang
Just want to figure out what are the pros & cons of both.
Thanks for the reply.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
2 matches
Mail list logo