|
@ -4,7 +4,7 @@ import random |
|
|
from django.contrib.auth.mixins import LoginRequiredMixin |
|
|
from django.contrib.auth.mixins import LoginRequiredMixin |
|
|
|
|
|
|
|
|
import sigi.apps.crud.base |
|
|
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 sigi.apps.usuarios.models import Usuario |
|
|
|
|
|
|
|
|
from .forms import SistemaForm, SolicitacaoEditForm, SolicitacaoForm |
|
|
from .forms import SistemaForm, SolicitacaoEditForm, SolicitacaoForm |
|
@ -41,6 +41,9 @@ class SolicitacaoCrud(LoginRequiredMixin, Crud): |
|
|
def layout_key(self): |
|
|
def layout_key(self): |
|
|
return u'SolicitacaoList' |
|
|
return u'SolicitacaoList' |
|
|
|
|
|
|
|
|
|
|
|
class BaseMixin(CrudBaseMixin): |
|
|
|
|
|
list_field_names = [u'codigo', u'sistema', u'titulo', u'data_criacao'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SistemaCrud(Crud): |
|
|
class SistemaCrud(Crud): |
|
|
model = Sistema |
|
|
model = Sistema |
|
|