From 4e0d49cb2f26ac7b812f8d5812770129a34e1c54 Mon Sep 17 00:00:00 2001 From: "Federico \"Fred\" Abrignani" Date: Fri, 29 May 2026 17:56:34 +0200 Subject: [PATCH] Add 1.02 Annex 2 draft ITS templante constraint "This value cannot be used as the counterparty identifier for any other counterparty." --- npl_portfolio/counterparty.py | 1 + 1 file changed, 1 insertion(+) diff --git a/npl_portfolio/counterparty.py b/npl_portfolio/counterparty.py index b3dba97..36bf30b 100755 --- a/npl_portfolio/counterparty.py +++ b/npl_portfolio/counterparty.py @@ -343,3 +343,4 @@ def __str__(self): class Meta: verbose_name = "Counterparty" verbose_name_plural = "Counterparties" + unique_together = [['portfolio_id', 'counterparty_identifier']]