From f51db8d0c69a279ed240cc93cd697b9cd08f17d2 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Tue, 13 Aug 2019 18:23:15 +0200 Subject: [PATCH] pas deux conso avec le meme nom --- apps/note/models/transactions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/note/models/transactions.py b/apps/note/models/transactions.py index 2095515d..11be33f1 100644 --- a/apps/note/models/transactions.py +++ b/apps/note/models/transactions.py @@ -18,6 +18,7 @@ class TransactionTemplate(models.Model): name = models.CharField( verbose_name=_('name'), max_length=255, + unique=True, ) destination = models.ForeignKey( NoteClub,