diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index 4aaf760..29c93e8 100644 --- a/sigi/apps/casas/models.py +++ b/sigi/apps/casas/models.py @@ -25,6 +25,7 @@ class TipoOrgao(models.Model): legislativo = models.BooleanField(_(u"Poder legislativo"), default=False) class Meta: + ordering = ('nome',) verbose_name = _(u"Tipo de órgão") verbose_name_plural = _(u"Tipos de órgão") diff --git a/sigi/apps/contatos/models.py b/sigi/apps/contatos/models.py index 6a6f217..155d978 100644 --- a/sigi/apps/contatos/models.py +++ b/sigi/apps/contatos/models.py @@ -13,11 +13,11 @@ class UnidadeFederativa(models.Model): """ Modelo que representa um estado brasileiro """ REGIAO_CHOICES = ( - ('SL', _(u'Sul')), - ('SD', _(u'Sudeste')), ('CO', _(u'Centro-Oeste')), ('NE', _(u'Nordeste')), ('NO', _(u'Norte')), + ('SD', _(u'Sudeste')), + ('SL', _(u'Sul')), ) codigo_ibge = models.PositiveIntegerField( u'código IBGE', @@ -83,7 +83,7 @@ class Microrregiao(models.Model): search_text = SearchField(field_names=['nome']) class Meta: - ordering = ('mesorregiao', 'nome') + ordering = ('nome',) verbose_name, verbose_name_plural = _(u'Microrregião'), _(u'Microrregiões') def __unicode__(self): diff --git a/sigi/apps/convenios/models.py b/sigi/apps/convenios/models.py index d8534d6..89246ea 100644 --- a/sigi/apps/convenios/models.py +++ b/sigi/apps/convenios/models.py @@ -15,7 +15,10 @@ class Projeto(models.Model): def __unicode__(self): return self.sigla - + + class Meta: + ordering = ('nome',) + class StatusConvenio(models.Model): nome = models.CharField(max_length=100) cancela = models.BooleanField(_(u"Cancela o convênio"), default=False) diff --git a/sigi/apps/ocorrencias/models.py b/sigi/apps/ocorrencias/models.py index 5e88def..9f43f28 100644 --- a/sigi/apps/ocorrencias/models.py +++ b/sigi/apps/ocorrencias/models.py @@ -17,6 +17,7 @@ class Categoria(models.Model): class Meta: verbose_name, verbose_name_plural = _(u'Categoria'), _(u'Categorias') + ordering = ('nome',) def __unicode__(self): return self.nome