Re: Struggling with formsets

2015-02-19 Thread Werner Brand
Thanks for the reponse! My template looks like this: {{ formset.management_form }} {{ formset }} {% csrf_token %} Here is the print request.POST: form-1-salaryform-MAX_NUM_FORMSform-0-surnameform-0-nameform-TOTAL_FORMSform-MIN_NUM_FORMSform-0-idform-1-nameform-

Struggling with formsets

2015-02-19 Thread Werner Brand
I cannot seem to figure this, although I suspects it is really elementary: I have two models: class Employee(models.Model): id_number = models.CharField(max_length=13) surname = models.CharField(max_length=100) name = models.CharField(max_length=100) class Payslip(models.Model): surname =