From 5c29336ace0adedf1e5bc3e5d8d9d153084942ca Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Mon, 17 Nov 2008 13:35:10 +0000 Subject: [PATCH] =?UTF-8?q?Nome=20de=20fabricante=20deve=20ser=20=C3=BAnic?= =?UTF-8?q?o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/inventario/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/inventario/models.py b/sigi/apps/inventario/models.py index 3c93542..af886bd 100644 --- a/sigi/apps/inventario/models.py +++ b/sigi/apps/inventario/models.py @@ -18,7 +18,7 @@ class Fornecedor(models.Model): return self.nome class Fabricante(models.Model): - nome = models.CharField(max_length=40) + nome = models.CharField(max_length=40, unique=True) nome.alphabetic_filter = True class Meta: