Browse Source

Arrumando o erro de portugues no tkt #98

pull/102/head^2
Lude Ribeiro 3 years ago
parent
commit
18a3959aa8
  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',) readonly_fields = ('ult_alteracao',)
extra = 1 extra = 1
inlines = (TelefonesInline,) inlines = (TelefonesInline,)
verbose_name_plural = _(u'Contato Interlegis Vigente') verbose_name_plural = _(u'Contato(s) Interlegis Vigente(s)')
def get_queryset(self, request): def get_queryset(self, request):
return (self.model.objects.filter(setor='contato_interlegis') return (self.model.objects.filter(setor='contato_interlegis')
.extra(select={'ult_null': 'ult_alteracao is null'}).order_by('-ult_alteracao') .extra(select={'ult_null': 'ult_alteracao is null'}).order_by('-ult_alteracao')

Loading…
Cancel
Save