|
@ -8,7 +8,7 @@ from django.contrib.contenttypes.models import ContentType |
|
|
from django.core.exceptions import ObjectDoesNotExist |
|
|
from django.core.exceptions import ObjectDoesNotExist |
|
|
from django.core.urlresolvers import reverse, reverse_lazy |
|
|
from django.core.urlresolvers import reverse, reverse_lazy |
|
|
from django.forms import ModelForm |
|
|
from django.forms import ModelForm |
|
|
from django.shortcuts import redirect, get_object_or_404 |
|
|
from django.shortcuts import get_object_or_404, redirect |
|
|
from django.utils.html import strip_tags |
|
|
from django.utils.html import strip_tags |
|
|
from django.utils.safestring import mark_safe |
|
|
from django.utils.safestring import mark_safe |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
@ -16,12 +16,12 @@ from django.views.generic import ListView |
|
|
from django.views.generic.edit import FormMixin |
|
|
from django.views.generic.edit import FormMixin |
|
|
from vanilla import GenericView |
|
|
from vanilla import GenericView |
|
|
|
|
|
|
|
|
|
|
|
import sapl |
|
|
from comissoes.models import Comissao, Composicao |
|
|
from comissoes.models import Comissao, Composicao |
|
|
from compilacao.models import TextoArticulado, TipoTextoArticulado |
|
|
from compilacao.models import TextoArticulado, TipoTextoArticulado |
|
|
from norma.models import LegislacaoCitada, NormaJuridica, TipoNormaJuridica |
|
|
from norma.models import LegislacaoCitada, NormaJuridica, TipoNormaJuridica |
|
|
from parlamentares.models import Parlamentar |
|
|
from parlamentares.models import Parlamentar |
|
|
from sapl.crud import build_crud |
|
|
from sapl.crud import build_crud |
|
|
import sapl |
|
|
|
|
|
|
|
|
|
|
|
from .models import (Anexada, Autor, Autoria, DespachoInicial, |
|
|
from .models import (Anexada, Autor, Autoria, DespachoInicial, |
|
|
DocumentoAcessorio, MateriaLegislativa, Numeracao, Orgao, |
|
|
DocumentoAcessorio, MateriaLegislativa, Numeracao, Orgao, |
|
@ -30,7 +30,6 @@ from .models import (Anexada, Autor, Autoria, DespachoInicial, |
|
|
TipoFimRelatoria, TipoMateriaLegislativa, TipoProposicao, |
|
|
TipoFimRelatoria, TipoMateriaLegislativa, TipoProposicao, |
|
|
Tramitacao, UnidadeTramitacao) |
|
|
Tramitacao, UnidadeTramitacao) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
origem_crud = build_crud( |
|
|
origem_crud = build_crud( |
|
|
Origem, 'origem', [ |
|
|
Origem, 'origem', [ |
|
|
|
|
|
|
|
|