From 2e7f49e1c3b7f35783254789eace0bb89a5e9433 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Fri, 20 Nov 2015 11:27:36 -0200 Subject: [PATCH] fix bug in compilacao_filters.py --- compilacao/templatetags/compilacao_filters.py | 2 +- .../migrations/0007_auto_20151119_1944.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 parlamentares/migrations/0007_auto_20151119_1944.py diff --git a/compilacao/templatetags/compilacao_filters.py b/compilacao/templatetags/compilacao_filters.py index 65b8abab1..4bf6223b6 100644 --- a/compilacao/templatetags/compilacao_filters.py +++ b/compilacao/templatetags/compilacao_filters.py @@ -78,7 +78,7 @@ def select_provaveis_inserts(view, request): @register.filter def is_relative_auto_insert(dpt, request): - return dpt.is_relative_auto_insert(request.session.perfil_estrutural) + return dpt.is_relative_auto_insert(request.session['perfil_estrutural']) @register.filter diff --git a/parlamentares/migrations/0007_auto_20151119_1944.py b/parlamentares/migrations/0007_auto_20151119_1944.py new file mode 100644 index 000000000..6c10fa9da --- /dev/null +++ b/parlamentares/migrations/0007_auto_20151119_1944.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0006_auto_20151119_1318'), + ] + + operations = [ + migrations.AlterField( + model_name='parlamentar', + name='unidade_deliberativa', + field=models.BooleanField(), + ), + ]