Saving the count of selected checkboxes

2018-01-23 Thread JSaa
Hello, I have a model that is used by a few different model forms. Model class QuestionAnswer(models.Model): ... qanswer_answer = models.CharField(max_length=1, null=False, default=None, blank=False) Now I have modelform that I use to collect info from the user. User selects all that a

ModelFormset label

2017-10-16 Thread JSaa
Hello all, I'm trying to set a model forms label according to another model's field's value. Now when the user loads the form, label's are shown as "Answer text" but I want it to show as the QuestionAnswer model's "question" foreign key's model's value. I.e. if the Question model's question_te