From 1765138e5cbcc81cbca142a9d8b5d4b3ec8aaedf Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Fri, 8 Apr 2016 10:34:04 -0300 Subject: [PATCH] Fix qa --- sessao/forms.py | 8 -------- sessao/views.py | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/sessao/forms.py b/sessao/forms.py index 79b52a51a..d62af30c7 100644 --- a/sessao/forms.py +++ b/sessao/forms.py @@ -1,14 +1,6 @@ -from crispy_forms.helper import FormHelper -from crispy_forms.layout import Fieldset, Layout from django import forms -from django.forms import ModelForm from django.utils.translation import ugettext_lazy as _ -import crispy_layout_mixin -from crispy_layout_mixin import form_actions - -from .models import SessaoPlenaria - class PresencaForm(forms.Form): presenca = forms.CharField(required=False, initial=False) diff --git a/sessao/views.py b/sessao/views.py index f1249b030..ae334ef2c 100644 --- a/sessao/views.py +++ b/sessao/views.py @@ -7,9 +7,10 @@ from django.core.urlresolvers import reverse, reverse_lazy from django.forms.utils import ErrorList from django.utils.html import strip_tags from django.utils.translation import ugettext_lazy as _ -from django.views.generic import CreateView, ListView, TemplateView +from django.views.generic import ListView, TemplateView from django.views.generic.edit import FormMixin from rest_framework import generics + import crud.base from crud.base import Crud, make_pagination from materia.models import (Autoria, DocumentoAcessorio, @@ -20,8 +21,7 @@ from sessao.serializers import SessaoPlenariaSerializer from .forms import (ExpedienteForm, ListMateriaForm, MateriaOrdemDiaForm, MesaForm, OradorDeleteForm, OradorForm, PresencaForm, - VotacaoEditForm, VotacaoForm, - VotacaoNominalForm) + VotacaoEditForm, VotacaoForm, VotacaoNominalForm) from .models import (CargoMesa, ExpedienteMateria, ExpedienteSessao, IntegranteMesa, MateriaLegislativa, Orador, OradorExpediente, OrdemDia, PresencaOrdemDia,