Пример #1
0
 def post(self, request, *args, **kwargs):
     form = EmpresaForm(request.POST,
                        request.FILES,
                        prefix='empresa_form',
                        request=request)
     return super(AdicionarEmpresaView, self).post(request, form, *args,
                                                   **kwargs)
Пример #2
0
 def get(self, request, *args, **kwargs):
     form = EmpresaForm(prefix='empresa_form')
     return super(AdicionarEmpresaView, self).get(request, form, *args,
                                                  **kwargs)