Пример #1
0
 def form_valid(self, form):
     self.object.set_activo(True)
     crear_historial_alta(form, self.request.user)
     return super(ClienteDeBajaRegistroView, self).form_valid(form)
Пример #2
0
 def form_valid(self, form):
     crear_perfil(form, 'cliente')
     crear_historial_alta(form, self.request.user)
     self.object.fechaUpdate = corregir_fecha_update(self.object)
     self.object.save()
     return HttpResponseRedirect(self.get_success_url())