From b9ac249071017ac81c3c0e9a83ee1cb3a60130d1 Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Wed, 16 Dec 2009 18:25:10 +0000 Subject: [PATCH] Adicionado unique_together em casa.CasaLegislativa. --- sigi/apps/casas/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index d27aed3..6f016a1 100644 --- a/sigi/apps/casas/models.py +++ b/sigi/apps/casas/models.py @@ -56,6 +56,7 @@ class CasaLegislativa(models.Model): class Meta: ordering = ('nome',) + unique_together = ('municipio', 'tipo') verbose_name = 'Casa Legislativa' verbose_name_plural = 'Casas Legislativas'