diff --git a/materia/models.py b/materia/models.py index 724c7f5ae..bcf63e53f 100644 --- a/materia/models.py +++ b/materia/models.py @@ -4,8 +4,8 @@ from model_utils import Choices from comissoes.models import Comissao from parlamentares.models import Parlamentar, Partido -from sapl.utils import (restringe_tipos_de_arquivo_txt, - RANGE_ANOS, YES_NO_CHOICES, xstr) +from sapl.utils import (RANGE_ANOS, YES_NO_CHOICES, + restringe_tipos_de_arquivo_txt, xstr) class TipoMateriaLegislativa(models.Model): diff --git a/materia/views.py b/materia/views.py index d71e8908d..36c4dbd6e 100644 --- a/materia/views.py +++ b/materia/views.py @@ -1,5 +1,4 @@ import os - from datetime import datetime from random import choice from string import ascii_letters, digits diff --git a/parlamentares/models.py b/parlamentares/models.py index 6842ced10..bb97e40d7 100644 --- a/parlamentares/models.py +++ b/parlamentares/models.py @@ -4,7 +4,7 @@ from django.db import models from django.utils.translation import ugettext_lazy as _ from model_utils import Choices -from sapl.utils import restringe_tipos_de_arquivo_img, UF, YES_NO_CHOICES +from sapl.utils import UF, YES_NO_CHOICES, restringe_tipos_de_arquivo_img class Legislatura(models.Model): diff --git a/parlamentares/views.py b/parlamentares/views.py index c2350d70c..75e3fe3f2 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -1,11 +1,10 @@ import os -from braces.views import FormMessagesMixin from django.contrib import messages from django.core.urlresolvers import reverse, reverse_lazy from django.http import HttpResponseRedirect from django.utils.translation import ugettext_lazy as _ -from django.views.generic import CreateView, FormView, UpdateView +from django.views.generic import FormView, UpdateView from crud.base import Crud diff --git a/sapl/utils.py b/sapl/utils.py index e06092ea9..6cef79ad0 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -1,13 +1,12 @@ from datetime import date - from functools import wraps +import magic from django.apps import apps from django.contrib import admin from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ -import magic autor_label = '''
diff --git a/sessao/forms.py b/sessao/forms.py index df819ceef..4b2367e52 100644 --- a/sessao/forms.py +++ b/sessao/forms.py @@ -1,7 +1,6 @@ from crispy_forms.helper import FormHelper from crispy_forms.layout import Fieldset, Layout from django import forms -from django.core.exceptions import ValidationError from django.forms import ModelForm from django.utils.translation import ugettext_lazy as _ diff --git a/sessao/models.py b/sessao/models.py index 2d59a13e5..6e7e2e86f 100644 --- a/sessao/models.py +++ b/sessao/models.py @@ -5,7 +5,7 @@ from model_utils import Choices from materia.models import MateriaLegislativa from parlamentares.models import (CargoMesa, Legislatura, Parlamentar, SessaoLegislativa) -from sapl.utils import restringe_tipos_de_arquivo_txt, YES_NO_CHOICES +from sapl.utils import YES_NO_CHOICES, restringe_tipos_de_arquivo_txt class TipoSessaoPlenaria(models.Model):