From 4f23405f9c3595076f7330a7e89f6e731ef8a6de Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Wed, 20 Mar 2019 16:54:31 +0100 Subject: [PATCH] Update agreement.py --- agreement/models/agreement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index b20abedf..afbc8e9e 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -29,7 +29,7 @@ class Agreement(models.Model): return res _sql_constraints = [( - 'code_partner_company_unique', + 'code_partner_unique', 'unique(code, partner_id)', 'This agreement code already exists for this partner!' )]