I’m part of a group here in Nashville called Penny University. Essentially it’s an “open-door” user group that connects people wanting to learn with people wanting to teach. Usually over lunch, coffee, or breakfast. I offered to meet up with a few people wanting to learn more about test driven development before and it quickly became a hot topic. I was asked to organize another round table discussion about TDD, and this is how it went.
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.
- OLDER POSTS
- page 1 of 2