Browse Source

Refatorar

pull/2630/head
João Rodrigues 7 years ago
committed by João Matheus
parent
commit
d49e2b28f5
  1. 9
      sapl/protocoloadm/models.py

9
sapl/protocoloadm/models.py

@ -351,10 +351,11 @@ class Anexado(models.Model):
verbose_name_plural = _('Anexados')
def __str__(self):
return _('Principal: %(documento_principal)s'
' - Anexada: %(documento_anexado)s') % {
'documento_principal': self.documento_principal,
'documento_anexado': self.documento_anexado
return _('Anexado: %(documento_anexado_tipo)s %(documento_anexado_numero)s'
'/%(documento_anexado_ano)s\n') % {
'documento_anexado_tipo': self.documento_anexado.tipo,
'documento_anexado_numero': self.documento_anexado.numero,
'documento_anexado_ano': self.documento_anexado.ano
}

Loading…
Cancel
Save