def form_valid(self):
     db_session.delete(self.model)
     db_session.commit()
     return super(DeleteView, self).form_valid()
 def form_valid(self):
     db_session.delete(self.model)
     db_session.commit()
     return super(DeleteView, self).form_valid()
 def form_valid(self):
     self.populate_obj()
     db_session.commit()
     return super(ModelEditMixin, self).form_valid()
 def form_valid(self):
     self.populate_obj()
     db_session.commit()
     return super(ModelEditMixin, self).form_valid()