def get_pages_formset(self): if self.request.method == "POST": return WorkflowPagesFormSet( self.request.POST, instance=self.object, prefix="pages" ) else: return WorkflowPagesFormSet(instance=self.object, prefix="pages")
def get_pages_formset(self): if self.request.method == 'POST': return WorkflowPagesFormSet(self.request.POST, instance=self.get_object(), prefix='pages') else: return WorkflowPagesFormSet(instance=self.get_object(), prefix='pages')