Exemple #1
0
 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")
Exemple #2
0
 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')