예제 #1
0
    def form_valid(self, form):
        devis_resp = UpdateView.form_valid(self, form)
        devis_formset = DevisInlineFormset(self.request.POST,
                                           instance=self.object)

        if devis_formset.is_valid():
            devis_formset.save()
        else:
            print devis_formset.errors

        return devis_resp
예제 #2
0
파일: views.py 프로젝트: jstavel/cdbazar
 def form_valid(self,form):
     return UpdateView.form_valid(self,form)
예제 #3
0
 def form_valid(self, form):
     retval_redir = self._form_valid_redirect(form)
     retval = UpdateView.form_valid(self, form)
     if retval_redir is not None:
         return retval_redir
     return retval
예제 #4
0
 def form_valid(self, form):
     retval_redir = self._form_valid_redirect(form)
     retval = UpdateView.form_valid(self, form)
     if retval_redir is not None:
         return retval_redir
     return retval
예제 #5
0
 def form_valid(self, form):
     form.save()
     return UpdateView.form_valid(self, form)