ChoiceField's choices from model
I have a product table but don't have a brand table. brands in product.brand as denormalized and I want to choose brands from a select tag.
- django
- forms
- choicefield
I have a product table but don't have a brand table. brands in product.brand as denormalized and I want to choose brands from a select tag.
cansarigol has posted 1 snippet.