summaryrefslogtreecommitdiff
path: root/tests/multiple_database
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-07 10:54:19 +0200
committerGitHub <noreply@github.com>2020-04-07 10:54:19 +0200
commitcf21fc9bf010c71385dbead215d26151fb70d2ad (patch)
treed617985fb81e569ff6d654be50bb54a1c522cbab /tests/multiple_database
parent678f958ef972bf9be402332537149ca0884035ba (diff)
downloaddjango-cf21fc9bf010c71385dbead215d26151fb70d2ad.tar.gz
Enforced uniqueness of natural keys used in tests.
Diffstat (limited to 'tests/multiple_database')
-rw-r--r--tests/multiple_database/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/multiple_database/models.py b/tests/multiple_database/models.py
index 5d1251ecb3..ace89fac89 100644
--- a/tests/multiple_database/models.py
+++ b/tests/multiple_database/models.py
@@ -25,7 +25,7 @@ class PersonManager(models.Manager):
class Person(models.Model):
- name = models.CharField(max_length=100)
+ name = models.CharField(max_length=100, unique=True)
objects = PersonManager()