diff options
Diffstat (limited to 'tests/serializers')
| -rw-r--r-- | tests/serializers/models/natural.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serializers/models/natural.py b/tests/serializers/models/natural.py index 8f0bc48648..88bfed566b 100644 --- a/tests/serializers/models/natural.py +++ b/tests/serializers/models/natural.py @@ -24,7 +24,7 @@ class FKDataNaturalKey(models.Model): class NaturalKeyThing(models.Model): - key = models.CharField(max_length=100) + key = models.CharField(max_length=100, unique=True) other_thing = models.ForeignKey('NaturalKeyThing', on_delete=models.CASCADE, null=True) other_things = models.ManyToManyField('NaturalKeyThing', related_name='thing_m2m_set') |
