> How can I cast this 2 values dictionary into a 2 values tuple? Why are you creating a dict here? Try something like this:
choices = [] for i in range(100): choices.append( (i, i+1) ) SONGNO_CHOICES = choices Or more concisely: SONGNO_CHOICES= [ (i,i+1) for i in range(100) ] This gives you a sequence (AKA a list, AKA an array) of two-tuples. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

