https://docs.djangoproject.com/en/1.10/topics/forms/#looping-over-the-form-s-fields
That said, testing for Boolean vs. non-Boolean fields is really more logic
than belongs in a template. You can manually lay out the form in the
template, specifying where each field should go and surrounding them w
I need to iterate the form to get Boolean values in a single line. Please
help me to figure out a way to iterate through model forms.
Also I generally need to understand how to iterate through modelforms.
App Model:
class ProjectDetails(models.Model):
type = models.CharField(max_length=120)
too
2 matches
Mail list logo