From 45674bdeb30bd9f2b62dbbe182dee7d10f3ca31a Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Thu, 9 Feb 2017 18:34:23 +0100 Subject: [PATCH] screning number is unique at database level --- smash/web/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smash/web/models.py b/smash/web/models.py index 0115708b..53889559 100644 --- a/smash/web/models.py +++ b/smash/web/models.py @@ -116,6 +116,7 @@ class Subject(models.Model): ) screening_number = models.CharField(max_length=50, blank=True, + unique=True, verbose_name='Screening number' ) nd_number = models.CharField(max_length=6, -- GitLab