I have the following models:
class Bill(models.Model): date = models.DateTimeField(_(\"Date of bill\"),null=True,blank=True) class Item(models.Model):
I made some modification to original solution to let formset.is_valid() to work:
if self.request.POST: context['fs'] = MyInlineFS(self.request.POST, instance=self.object) else: context['fs'] = MyInlineFS(instance=self.object)