|
@ -963,25 +963,21 @@ class DocumentoAcessorioCrud(MasterDetailCrud): |
|
|
form_class = DocumentoAcessorioForm |
|
|
form_class = DocumentoAcessorioForm |
|
|
|
|
|
|
|
|
def __init__(self, **kwargs): |
|
|
def __init__(self, **kwargs): |
|
|
montar_helper_documento_acessorio(self) |
|
|
|
|
|
super(MasterDetailCrud.CreateView, self).__init__(**kwargs) |
|
|
super(MasterDetailCrud.CreateView, self).__init__(**kwargs) |
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
def get_context_data(self, **kwargs): |
|
|
context = super( |
|
|
context = super( |
|
|
MasterDetailCrud.CreateView, self).get_context_data(**kwargs) |
|
|
MasterDetailCrud.CreateView, self).get_context_data(**kwargs) |
|
|
context['helper'] = self.helper |
|
|
|
|
|
return context |
|
|
return context |
|
|
|
|
|
|
|
|
class UpdateView(MasterDetailCrud.UpdateView): |
|
|
class UpdateView(MasterDetailCrud.UpdateView): |
|
|
form_class = DocumentoAcessorioForm |
|
|
form_class = DocumentoAcessorioForm |
|
|
|
|
|
|
|
|
def __init__(self, **kwargs): |
|
|
def __init__(self, **kwargs): |
|
|
montar_helper_documento_acessorio(self) |
|
|
|
|
|
super(MasterDetailCrud.UpdateView, self).__init__(**kwargs) |
|
|
super(MasterDetailCrud.UpdateView, self).__init__(**kwargs) |
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
def get_context_data(self, **kwargs): |
|
|
context = super(UpdateView, self).get_context_data(**kwargs) |
|
|
context = super(UpdateView, self).get_context_data(**kwargs) |
|
|
context['helper'] = self.helper |
|
|
|
|
|
return context |
|
|
return context |
|
|
|
|
|
|
|
|
|
|
|
|
|
|