diff options
Diffstat (limited to 'tests/serializers')
| -rw-r--r-- | tests/serializers/models/natural.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serializers/models/natural.py b/tests/serializers/models/natural.py index 62cf95185e..8f0bc48648 100644 --- a/tests/serializers/models/natural.py +++ b/tests/serializers/models/natural.py @@ -10,11 +10,11 @@ class NaturalKeyAnchorManager(models.Manager): class NaturalKeyAnchor(models.Model): - objects = NaturalKeyAnchorManager() - data = models.CharField(max_length=100, unique=True) title = models.CharField(max_length=100, null=True) + objects = NaturalKeyAnchorManager() + def natural_key(self): return (self.data,) |
