Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list NameLoad
N/A N/A 
21. Specifying 'choices' for a field

Most fields take a ``choices`` parameter, which should be a tuple of tuples
specifying which are the valid values for that field.

For each field that has ``choices``, a model instance gets a
``get_fieldname_display()`` method, where ``fieldname`` is the name of the
field. This method returns the "human-readable" value of the field.
 django.db models django.utils.encoding python_2_unicode_compatible N/A GENDER_CHOICES N/A N/A M Male N/A F Female Person N/A N/A models Model N/A N/A name N/A N/A models CharField max_length 20 N/A gender N/A N/A models CharField max_length 1 choices GENDER_CHOICES __str__ N/A N/A self N/A N/A N/A N/A self name N/A N/A python_2_unicode_compatible