|
@ -3,7 +3,6 @@ from datetime import datetime |
|
|
from crispy_forms.helper import FormHelper |
|
|
from crispy_forms.helper import FormHelper |
|
|
from crispy_forms.layout import HTML, Button, Fieldset, Layout |
|
|
from crispy_forms.layout import HTML, Button, Fieldset, Layout |
|
|
from django import forms |
|
|
from django import forms |
|
|
from django.contrib import messages |
|
|
|
|
|
from django.contrib.contenttypes.models import ContentType |
|
|
from django.contrib.contenttypes.models import ContentType |
|
|
from django.core.exceptions import ObjectDoesNotExist, ValidationError |
|
|
from django.core.exceptions import ObjectDoesNotExist, ValidationError |
|
|
from django.db import transaction |
|
|
from django.db import transaction |
|
@ -12,22 +11,21 @@ from django.forms import ModelForm |
|
|
from django.forms.widgets import CheckboxSelectMultiple |
|
|
from django.forms.widgets import CheckboxSelectMultiple |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
|
import django_filters |
|
|
import django_filters |
|
|
from floppyforms import widgets |
|
|
|
|
|
|
|
|
|
|
|
from sapl.base.models import Autor, TipoAutor |
|
|
from sapl.base.models import Autor, TipoAutor |
|
|
from sapl.crispy_layout_mixin import form_actions, to_row, SaplFormLayout |
|
|
from sapl.crispy_layout_mixin import form_actions, to_row, SaplFormLayout |
|
|
from sapl.materia.forms import MateriaLegislativaFilterSet |
|
|
from sapl.materia.forms import MateriaLegislativaFilterSet |
|
|
from sapl.materia.models import (MateriaLegislativa, StatusTramitacao, |
|
|
from sapl.materia.models import (MateriaLegislativa, StatusTramitacao, |
|
|
TipoMateriaLegislativa) |
|
|
TipoMateriaLegislativa) |
|
|
from sapl.parlamentares.models import Parlamentar, Legislatura, Mandato |
|
|
from sapl.parlamentares.models import Parlamentar, Mandato |
|
|
from sapl.utils import (RANGE_DIAS_MES, RANGE_MESES, |
|
|
from sapl.utils import (RANGE_DIAS_MES, RANGE_MESES, |
|
|
MateriaPesquisaOrderingFilter, autor_label, |
|
|
MateriaPesquisaOrderingFilter, autor_label, |
|
|
autor_modal, timezone, choice_anos_com_sessaoplenaria) |
|
|
autor_modal, timezone, choice_anos_com_sessaoplenaria) |
|
|
|
|
|
|
|
|
from .models import (Bancada, Bloco, ExpedienteMateria, JustificativaAusencia, |
|
|
from .models import (Bancada, Bloco, ExpedienteMateria, JustificativaAusencia, |
|
|
Orador, OradorExpediente, OrdemDia, PresencaOrdemDia, SessaoPlenaria, |
|
|
Orador, OradorExpediente, OrdemDia, PresencaOrdemDia, SessaoPlenaria, |
|
|
SessaoPlenariaPresenca, TipoJustificativa, TipoResultadoVotacao, |
|
|
SessaoPlenariaPresenca, TipoResultadoVotacao, |
|
|
OcorrenciaSessao, RegistroVotacao, RetiradaPauta, TipoRetiradaPauta) |
|
|
OcorrenciaSessao, RetiradaPauta, TipoRetiradaPauta) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MES_CHOICES = RANGE_MESES |
|
|
MES_CHOICES = RANGE_MESES |
|
|