From e817ae74da0e515db31907ebcb2d00bcf7c3f5bc Mon Sep 17 00:00:00 2001 From: Matt Wiens Date: Thu, 27 Dec 2018 16:34:14 -0800 Subject: Followed style guide for model attribute ordering. --- tests/serializers/models/natural.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/serializers') 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,) -- cgit v1.3