From 585ea8093a3d528ff55a448e525c7f18204adcce Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 14 Apr 2016 10:58:17 -0300 Subject: [PATCH] =?UTF-8?q?Remove=20c=C3=B3digo=20desnecess=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crud/base.py | 6 ------ sessao/views.py | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/crud/base.py b/crud/base.py index c14671a4d..ea9f9c109 100644 --- a/crud/base.py +++ b/crud/base.py @@ -220,11 +220,5 @@ class Crud: model = _model help_path = _help_path - # FIXME!!!! corrigir referencias no codigo e remover isso!!!!! - # fazer com #230 - class CrudDetailView(cls.BaseMixin, cls.DetailView): - model = _model - help_path = _help_path - ModelCrud.__name__ = '%sCrud' % _model.__name__ return ModelCrud diff --git a/sessao/views.py b/sessao/views.py index e6a1cb36d..a8fbbb002 100644 --- a/sessao/views.py +++ b/sessao/views.py @@ -46,6 +46,8 @@ class SessaoCrud(Crud): list_field_names = ['numero', 'tipo', 'legislatura', 'sessao_legislativa', 'data_inicio', 'hora_inicio'] + # FIXME!!!! corrigir referencias no codigo e remover isso!!!!! + # fazer com #230 class CrudDetailView(crud.base.BaseMixin, crud.base.DetailView): model = SessaoPlenaria help_path = 'sessao_plenaria'