Browse Source

Corrige QA

pull/222/head
Marcio Mazza 9 years ago
parent
commit
e39ab512d6
  1. 3
      crud_tests/settings.py
  2. 1
      protocoloadm/views.py
  3. 3
      scripts/convert_null_to_empty_in_all_char_fields.py
  4. 1
      sessao/views.py

3
crud_tests/settings.py

@ -27,7 +27,8 @@ SECRET_KEY = 'zzz...'
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'crud_tests/templates'), os.path.join(BASE_DIR, 'templates')],
'DIRS': [os.path.join(BASE_DIR, 'crud_tests/templates'),
os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

1
protocoloadm/views.py

@ -14,7 +14,6 @@ from django.views.generic.base import TemplateView
from django.views.generic.edit import FormMixin
from vanilla import GenericView
import sapl
from crud import build_crud, make_pagination
from materia.models import Proposicao, TipoMateriaLegislativa
from sapl.utils import create_barcode

3
scripts/convert_null_to_empty_in_all_char_fields.py

@ -1,6 +1,7 @@
from sapl.utils import appconfs
from django.db import models
from sapl.utils import appconfs
def convert_null_to_empty():
for app in appconfs:

1
sessao/views.py

@ -10,7 +10,6 @@ from django.views.generic import ListView
from django.views.generic.edit import FormMixin
from rest_framework import generics
import sapl
from crud import build_crud, make_pagination
from materia.models import (Autoria, DocumentoAcessorio,
TipoMateriaLegislativa, Tramitacao)

Loading…
Cancel
Save