Top "Formset" questions

In django, a formset is a layer of abstraction to working with multiple forms on the same page.

How to access data when form.is_valid() is false

When I have a valid Django form, I can access the data with form.cleaned_data. But how do I …

python django forms formset cleaned-data
Django: Initializing a FormSet of custom forms with instances

Given the following models: class Graph(models.Model): owner = models.ForeignKey(User) def __unicode__(self): return u'%d' % self.id …

django forms instance formset
Django: how to display form errors for each model object in a inline formset

I have a author model and a books model. A user can modify properties of all the books from a …

django validation django-forms formset inline-formset
Django accessing formset data

I'm having difficulty accessing the data submitted through my formset. Here is my code: Template: <form action="" method="post"&…

django forms formset
ManagementForm data missing error while formset validation

formset creation in views.py: ffact = formset_factory(Form,extra=somenum])) fset = ffact(prefix='pfix') validation in views.py: ffact = …

django validation django-forms formset
Django and empty formset are valid

I have a little problem with the formset. I must display several formsets in a page, and each formset has …

python django formset
Custom Label in Django Formset

How do I add custom labels to my formset? <form method="post" action=""> {{ formset.management_form }} {% for form …

django django-templates django-forms formset
Django formset unit test

I can't run a unit test with formset. I try to do a test: class NewClientTestCase(TestCase): def setUp(self): …

django unit-testing formset
Django formset doesn't validate

I am trying to save a formset but it seems to be bypassing is_valid() even though there are required …

django forms formset
django saving model with formset

I have the following view code account = PatientAccount.objects.get(pk=account_id) payments = Payments.objects.filter(account=account) total_…

django formset