How to access Django's field.choices?
django, django-models
Solution
Sure. Just access the `choices` attribute of a Model field:
MyModel._meta.get_field('foo').choices
my_instance._meta.get_field('foo').choices
Problem
Is there a way (without using a form) to access a model fields choices value? I want to do something like `field.choices` and get the list of values either in a view or template.