From 62388ed563552f7619f6eb1dfc70b07e47057d7a Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Fri, 19 Feb 2016 15:36:45 -0200 Subject: [PATCH] Corrige QA --- crud_tests/settings.py | 3 ++- protocoloadm/views.py | 1 - sapl/utils.py | 2 +- scripts/convert_null_to_empty_in_all_char_fields.py | 3 ++- sessao/views.py | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crud_tests/settings.py b/crud_tests/settings.py index b3d1042dc..5393f0bb3 100644 --- a/crud_tests/settings.py +++ b/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': [ diff --git a/protocoloadm/views.py b/protocoloadm/views.py index 9e0cc4367..4bef458da 100644 --- a/protocoloadm/views.py +++ b/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 diff --git a/sapl/utils.py b/sapl/utils.py index 1ede6eabf..6f9c48c46 100644 --- a/sapl/utils.py +++ b/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 diff --git a/scripts/convert_null_to_empty_in_all_char_fields.py b/scripts/convert_null_to_empty_in_all_char_fields.py index d828a8fd3..2f4e03a89 100644 --- a/scripts/convert_null_to_empty_in_all_char_fields.py +++ b/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: diff --git a/sessao/views.py b/sessao/views.py index 0ac58b2c0..1757db802 100644 --- a/sessao/views.py +++ b/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)