Browse Source

Fix Chamado #493294

pull/2345/head
AndreSouto 7 years ago
parent
commit
cd1445386a
  1. 4
      sapl/materia/models.py

4
sapl/materia/models.py

@ -2,7 +2,7 @@
from django.contrib.auth.models import Group from django.contrib.auth.models import Group
from django.contrib.contenttypes.fields import GenericRelation from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.contenttypes.models import ContentType 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 import models
from django.db.models.functions import Concat from django.db.models.functions import Concat
from django.template import defaultfilters from django.template import defaultfilters
@ -271,6 +271,8 @@ class MateriaLegislativa(models.Model):
return protocolo.data return protocolo.data
except ObjectDoesNotExist: except ObjectDoesNotExist:
pass pass
except MultipleObjectsReturned:
pass
return '' return ''

Loading…
Cancel
Save