diff --git a/sigi/apps/solicitacoes/views.py b/sigi/apps/solicitacoes/views.py index 6c8198d..3ca4f3b 100644 --- a/sigi/apps/solicitacoes/views.py +++ b/sigi/apps/solicitacoes/views.py @@ -4,7 +4,7 @@ import random from django.contrib.auth.mixins import LoginRequiredMixin import sigi.apps.crud.base -from sigi.apps.crud.base import Crud, CrudCreateView, CrudListView, CrudCreateView, CrudUpdateView +from sigi.apps.crud.base import Crud, CrudCreateView, CrudListView, CrudCreateView, CrudUpdateView, CrudBaseMixin from sigi.apps.usuarios.models import Usuario from .forms import SistemaForm, SolicitacaoEditForm, SolicitacaoForm @@ -41,6 +41,9 @@ class SolicitacaoCrud(LoginRequiredMixin, Crud): def layout_key(self): return u'SolicitacaoList' + class BaseMixin(CrudBaseMixin): + list_field_names = [u'codigo', u'sistema', u'titulo', u'data_criacao'] + class SistemaCrud(Crud): model = Sistema diff --git a/templates/base.html b/templates/base.html index 7947e02..adb5dcf 100644 --- a/templates/base.html +++ b/templates/base.html @@ -56,7 +56,7 @@