Browse Source

Remove código comentado

pull/271/head
Marcio Mazza 9 years ago
parent
commit
0d9295be57
  1. 1
      materia/test_materia_urls.py
  2. 1
      norma/views.py
  3. 1
      parlamentares/test_parlamentares_urls.py
  4. 2
      protocoloadm/views.py
  5. 14
      sessao/forms.py

1
materia/test_materia_urls.py

@ -1,4 +1,3 @@
# import pytest
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse

1
norma/views.py

@ -118,7 +118,6 @@ class NormaIncluirView(CreateView):
def form_valid(self, form): def form_valid(self, form):
norma = form.save(commit=False) norma = form.save(commit=False)
norma.timestamp = datetime.now() norma.timestamp = datetime.now()
# import ipdb; ipdb.set_trace()
if form.cleaned_data['tipo_materia']: if form.cleaned_data['tipo_materia']:
materia = MateriaLegislativa.objects.get( materia = MateriaLegislativa.objects.get(
tipo_id=form.data['tipo_materia'], tipo_id=form.data['tipo_materia'],

1
parlamentares/test_parlamentares_urls.py

@ -1,4 +1,3 @@
# import pytest
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse

2
protocoloadm/views.py

@ -285,7 +285,6 @@ class ProtocoloMateriaView(FormView):
return reverse('protocoloadm:protocolo') return reverse('protocoloadm:protocolo')
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
# import ipdb; ipdb.set_trace()
form = ProtocoloMateriaForm(request.POST) form = ProtocoloMateriaForm(request.POST)
@ -605,7 +604,6 @@ class TramitacaoAdmIncluirView(FormView):
form = TramitacaoAdmForm(request.POST or None) form = TramitacaoAdmForm(request.POST or None)
if form.is_valid(): if form.is_valid():
# import ipdb; ipdb.set_trace()
tramitacao = form.save(commit=False) tramitacao = form.save(commit=False)
tramitacao.ultima = False tramitacao.ultima = False
tramitacao.save() tramitacao.save()

14
sessao/forms.py

@ -92,20 +92,6 @@ class SessaoForm(ModelForm):
'hora_fim': forms.TextInput(attrs={'class': 'hora'}), 'hora_fim': forms.TextInput(attrs={'class': 'hora'}),
} }
# def clean_url_audio(self):
# url_audio = self.cleaned_data.get('url_audio', False)
# if url_audio:
# if url_audio.size > 5*1024*1024:
# raise ValidationError("Arquivo muito grande. ( > 5mb )")
# return url_audio
# def clean_url_video(self):
# url_video = self.cleaned_data.get('url_video', False)
# if url_video:
# if url_video.size > 5*1024*1024:
# raise ValidationError("Arquivo muito grande. ( > 5mb )")
# return url_video
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
row1 = crispy_layout_mixin.to_row( row1 = crispy_layout_mixin.to_row(

Loading…
Cancel
Save