diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index f9dc33f60..0ac04b7af 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -4,6 +4,7 @@ from django.core.urlresolvers import reverse, reverse_lazy from django.db.models import F, Q from django.http import JsonResponse from django.http.response import HttpResponseRedirect +from django.templatetags.static import static from django.utils.datastructures import MultiValueDictKeyError from django.utils.translation import ugettext_lazy as _ from django.views.generic import FormView @@ -345,6 +346,15 @@ class ParlamentarCrud(Crud): # Tira Link do avatar_html e coloca no nome for row in context['rows']: + + # preenche coluna foto, se vazia + if not row[0][0]: + # img = ' ' + img = "