I have a model that requires quite a few BooleanFields, they could be considered preferences in some way. What I’m currently doing is adding all the fields to the model itself and hardcoding the labels to the HTML. So my model looks somewhat like this:
class Project(models.Model):
...some fields...
Check1=models.BooleanField()
....many of these...
Check19=models.BooleanField()
I feel this is a very dumb way of doing it and am looking for a more Pythonic solution. Maybe ManyToMany fields? Any ideas?
I would rather give the boolean fields some meaningful names and would put verbose_name to the field description, e.g.