|
@ -1055,9 +1055,7 @@ class TramitacaoCrud(MasterDetailCrud): |
|
|
class UpdateView(MasterDetailCrud.UpdateView): |
|
|
class UpdateView(MasterDetailCrud.UpdateView): |
|
|
form_class = TramitacaoUpdateForm |
|
|
form_class = TramitacaoUpdateForm |
|
|
|
|
|
|
|
|
@property |
|
|
layout_key = 'TramitacaoUpdate' |
|
|
def layout_key(self): |
|
|
|
|
|
return 'TramitacaoUpdate' |
|
|
|
|
|
|
|
|
|
|
|
def form_valid(self, form): |
|
|
def form_valid(self, form): |
|
|
self.object = form.save() |
|
|
self.object = form.save() |
|
@ -1281,9 +1279,7 @@ class LegislacaoCitadaCrud(MasterDetailCrud): |
|
|
|
|
|
|
|
|
class DetailView(MasterDetailCrud.DetailView): |
|
|
class DetailView(MasterDetailCrud.DetailView): |
|
|
|
|
|
|
|
|
@property |
|
|
layout_key = 'LegislacaoCitadaDetail' |
|
|
def layout_key(self): |
|
|
|
|
|
return 'LegislacaoCitadaDetail' |
|
|
|
|
|
|
|
|
|
|
|
class DeleteView(MasterDetailCrud.DeleteView): |
|
|
class DeleteView(MasterDetailCrud.DeleteView): |
|
|
pass |
|
|
pass |
|
@ -1357,9 +1353,7 @@ class MateriaLegislativaCrud(Crud): |
|
|
class BaseMixin(Crud.BaseMixin): |
|
|
class BaseMixin(Crud.BaseMixin): |
|
|
list_field_names = ['tipo', 'numero', 'ano', 'data_apresentacao'] |
|
|
list_field_names = ['tipo', 'numero', 'ano', 'data_apresentacao'] |
|
|
|
|
|
|
|
|
@property |
|
|
list_url = '' |
|
|
def list_url(self): |
|
|
|
|
|
return '' |
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def search_url(self): |
|
|
def search_url(self): |
|
@ -1389,9 +1383,7 @@ class MateriaLegislativaCrud(Crud): |
|
|
|
|
|
|
|
|
class DetailView(Crud.DetailView): |
|
|
class DetailView(Crud.DetailView): |
|
|
|
|
|
|
|
|
@property |
|
|
layout_key = 'MateriaLegislativaDetail' |
|
|
def layout_key(self): |
|
|
|
|
|
return 'MateriaLegislativaDetail' |
|
|
|
|
|
|
|
|
|
|
|
class ListView(Crud.ListView, RedirectView): |
|
|
class ListView(Crud.ListView, RedirectView): |
|
|
|
|
|
|
|
|