Answer the question
In order to leave comments, you need to log in
How to convert select to checkbox in django form?
Please help me understand how to remake the form in my application. There is a field in the form with the choice of organization. Here is its field from the model -
class Report(models.Model):
organisation = models.ForeignKey(Organisation, default=None, null=True, on_delete=models.DO_NOTHING)
class ReportForm(forms.ModelForm):
class Meta:
model = Report
fields = (
'name',
'organisation',
'columns',
'message'
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question