Choices for Choices in Django CharFields

It’s not uncommon to want to restrict input options to a set of pre defined values. In this post, I’m particularly talking about handling multiple choices using a CharField from the Model class in Django. There are many ways to approach choices in a Django model. I’m going to cover a few approaches in this post and none of them will be the definitive answer. You should always use your best judgement. There’s never going to be a one size fits all solution.

Continue reading

Author's picture

Hi! My name is

Anthony Fox

A year old .

Anthony is fascinated with automating anything that can be automated and enjoys staying active in the local programming user groups. On occassion, he will even speak.

He’s had the pleasure of having his writings featured on the following sites/newsletters:

Software Engineer

Nashville, TN