Browse Source

Merge branch 'new_sigi' of github.com:interlegis/sigi into new_sigi

pull/102/head
Lude Ribeiro 3 years ago
parent
commit
3f65bf8534
  1. 2
      sigi/apps/casas/admin.py

2
sigi/apps/casas/admin.py

@ -69,7 +69,7 @@ class ContatoInterlegisInline(admin.StackedInline):
readonly_fields = ('ult_alteracao',)
extra = 1
inlines = (TelefonesInline,)
verbose_name_plural = _(u'Contato Interlegis Vigente')
verbose_name_plural = _(u'Contato(s) Interlegis Vigente(s)')
def get_queryset(self, request):
return (self.model.objects.filter(setor='contato_interlegis')
.extra(select={'ult_null': 'ult_alteracao is null'}).order_by('-ult_alteracao')

Loading…
Cancel
Save