From cd1445386aeb31afec93cda8063a09741f2f0381 Mon Sep 17 00:00:00 2001 From: AndreSouto Date: Wed, 31 Oct 2018 15:36:33 -0300 Subject: [PATCH] Fix Chamado #493294 --- sapl/materia/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapl/materia/models.py b/sapl/materia/models.py index 3c1b4862e..8d19123f1 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -2,7 +2,7 @@ from django.contrib.auth.models import Group from django.contrib.contenttypes.fields import GenericRelation from django.contrib.contenttypes.models import ContentType -from django.core.exceptions import ObjectDoesNotExist +from django.core.exceptions import ObjectDoesNotExist,MultipleObjectsReturned from django.db import models from django.db.models.functions import Concat from django.template import defaultfilters @@ -271,6 +271,8 @@ class MateriaLegislativa(models.Model): return protocolo.data except ObjectDoesNotExist: pass + except MultipleObjectsReturned: + pass return ''