|
@ -3,15 +3,12 @@ from datetime import datetime |
|
|
from crispy_forms.helper import FormHelper |
|
|
from crispy_forms.helper import FormHelper |
|
|
from crispy_forms.layout import Fieldset, Layout |
|
|
from crispy_forms.layout import Fieldset, Layout |
|
|
from django import forms |
|
|
from django import forms |
|
|
from django.contrib import messages |
|
|
from django.core.exceptions import ObjectDoesNotExist |
|
|
from django.core.exceptions import ObjectDoesNotExist, ValidationError |
|
|
|
|
|
from django.forms import ModelForm |
|
|
from django.forms import ModelForm |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
|
|
|
|
|
|
|
|
|
|
import crispy_layout_mixin |
|
|
import crispy_layout_mixin |
|
|
from crispy_layout_mixin import form_actions |
|
|
from crispy_layout_mixin import form_actions |
|
|
from materia.models import MateriaLegislativa, TipoMateriaLegislativa |
|
|
from materia.models import MateriaLegislativa, TipoMateriaLegislativa |
|
|
from sapl.settings import MAX_DOC_UPLOAD_SIZE |
|
|
|
|
|
from sapl.utils import RANGE_ANOS |
|
|
from sapl.utils import RANGE_ANOS |
|
|
|
|
|
|
|
|
from .models import NormaJuridica |
|
|
from .models import NormaJuridica |
|
|