Browse Source

Corrige QA

pull/216/head
Marcio Mazza 9 years ago
committed by Eduardo Edson Batista Cordeiro Alves
parent
commit
62388ed563
  1. 3
      crud_tests/settings.py
  2. 1
      protocoloadm/views.py
  3. 2
      sapl/utils.py
  4. 3
      scripts/convert_null_to_empty_in_all_char_fields.py
  5. 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

2
sapl/utils.py

@ -33,7 +33,7 @@ def xstr(s):
def create_barcode(value):
'''
'''
creates a base64 encoded barcode PNG image
'''
from base64 import b64encode

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