Browse Source

Faz ajustes apos os testes automaticos

pull/268/head
Eduardo Calil 9 years ago
parent
commit
1200b361e0
  1. 4
      materia/models.py
  2. 1
      materia/views.py
  3. 2
      parlamentares/models.py
  4. 3
      parlamentares/views.py
  5. 3
      sapl/utils.py
  6. 1
      sessao/forms.py
  7. 2
      sessao/models.py

4
materia/models.py

@ -4,8 +4,8 @@ from model_utils import Choices
from comissoes.models import Comissao from comissoes.models import Comissao
from parlamentares.models import Parlamentar, Partido from parlamentares.models import Parlamentar, Partido
from sapl.utils import (restringe_tipos_de_arquivo_txt, from sapl.utils import (RANGE_ANOS, YES_NO_CHOICES,
RANGE_ANOS, YES_NO_CHOICES, xstr) restringe_tipos_de_arquivo_txt, xstr)
class TipoMateriaLegislativa(models.Model): class TipoMateriaLegislativa(models.Model):

1
materia/views.py

@ -1,5 +1,4 @@
import os import os
from datetime import datetime from datetime import datetime
from random import choice from random import choice
from string import ascii_letters, digits from string import ascii_letters, digits

2
parlamentares/models.py

@ -4,7 +4,7 @@ from django.db import models
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from model_utils import Choices 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): class Legislatura(models.Model):

3
parlamentares/views.py

@ -1,11 +1,10 @@
import os import os
from braces.views import FormMessagesMixin
from django.contrib import messages from django.contrib import messages
from django.core.urlresolvers import reverse, reverse_lazy from django.core.urlresolvers import reverse, reverse_lazy
from django.http import HttpResponseRedirect from django.http import HttpResponseRedirect
from django.utils.translation import ugettext_lazy as _ 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 from crud.base import Crud

3
sapl/utils.py

@ -1,13 +1,12 @@
from datetime import date from datetime import date
from functools import wraps from functools import wraps
import magic
from django.apps import apps from django.apps import apps
from django.contrib import admin from django.contrib import admin
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
import magic
autor_label = ''' autor_label = '''
<div class="col-xs-12"> <div class="col-xs-12">

1
sessao/forms.py

@ -1,7 +1,6 @@
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.core.exceptions import ValidationError
from django.forms import ModelForm from django.forms import ModelForm
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _

2
sessao/models.py

@ -5,7 +5,7 @@ from model_utils import Choices
from materia.models import MateriaLegislativa from materia.models import MateriaLegislativa
from parlamentares.models import (CargoMesa, Legislatura, Parlamentar, from parlamentares.models import (CargoMesa, Legislatura, Parlamentar,
SessaoLegislativa) 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): class TipoSessaoPlenaria(models.Model):

Loading…
Cancel
Save