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. 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 = [{ TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates', '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, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ '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 django.views.generic.edit import FormMixin
from vanilla import GenericView from vanilla import GenericView
import sapl
from crud import build_crud, make_pagination from crud import build_crud, make_pagination
from materia.models import Proposicao, TipoMateriaLegislativa from materia.models import Proposicao, TipoMateriaLegislativa
from sapl.utils import create_barcode from sapl.utils import create_barcode

2
sapl/utils.py

@ -33,7 +33,7 @@ def xstr(s):
def create_barcode(value): def create_barcode(value):
''' '''
creates a base64 encoded barcode PNG image creates a base64 encoded barcode PNG image
''' '''
from base64 import b64encode 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 django.db import models
from sapl.utils import appconfs
def convert_null_to_empty(): def convert_null_to_empty():
for app in appconfs: 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 django.views.generic.edit import FormMixin
from rest_framework import generics from rest_framework import generics
import sapl
from crud import build_crud, make_pagination from crud import build_crud, make_pagination
from materia.models import (Autoria, DocumentoAcessorio, from materia.models import (Autoria, DocumentoAcessorio,
TipoMateriaLegislativa, Tramitacao) TipoMateriaLegislativa, Tramitacao)

Loading…
Cancel
Save