|
|
|
@ -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 '' |
|
|
|
|
|
|
|
|