diff --git a/base/forms.py b/base/forms.py index d8747b6af..9201aa666 100644 --- a/base/forms.py +++ b/base/forms.py @@ -1,14 +1,8 @@ -from crispy_forms.helper import FormHelper -from crispy_forms.layout import HTML, Fieldset, Layout from django import forms from django.contrib.auth.forms import AuthenticationForm from django.core.exceptions import ValidationError from django.forms import ModelForm -from django.utils.translation import ugettext_lazy as _ - -import crispy_layout_mixin import sapl -from crispy_layout_mixin import form_actions from sapl.settings import MAX_IMAGE_UPLOAD_SIZE from .models import CasaLegislativa diff --git a/base/views.py b/base/views.py index f7e68ea87..119e81d8b 100644 --- a/base/views.py +++ b/base/views.py @@ -1,9 +1,3 @@ -import os -from functools import lru_cache - -from django.core.exceptions import ObjectDoesNotExist -from django.core.urlresolvers import reverse -from django.views.generic import FormView from django.views.generic.base import TemplateView import crud.base @@ -13,7 +7,6 @@ from .forms import CasaLegislativaForm from .models import CasaLegislativa -# @lru_cache(maxsize=1) def get_casalegislativa(): return CasaLegislativa.objects.first() diff --git a/comissoes/tests/test_comissoes.py b/comissoes/tests/test_comissoes.py index bad7b45a1..8d05c0a80 100644 --- a/comissoes/tests/test_comissoes.py +++ b/comissoes/tests/test_comissoes.py @@ -2,8 +2,7 @@ import pytest from django.core.urlresolvers import reverse from model_mommy import mommy -from comissoes.models import (CargoComissao, Comissao, Composicao, - Participacao, Periodo, TipoComissao) +from comissoes.models import Comissao, Composicao, Periodo, TipoComissao from parlamentares.models import Filiacao, Parlamentar, Partido