Задать вопрос

Тел: +7 965 3737 888

486

Просмотров

0

Ответов

Choices

This allows you to access the choices (and their respective values) you create as a dictionary. It works great within django and it allows you to reference the choices as a dictionary (CHOICES[CHOICE1]) instead of CHOICES[0][0]... it is a tuple... but I mean, come on... what if you change the order? If you need the tuple just call CHOICES.choices and it will return the standard tuple.

Вопрос полезен? Да0/Нет0
file_3211.py(799.0б)
None