diff options
author | Matt Wiens <mwiens91@gmail.com> | 2018-12-27 16:34:14 -0800 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-12-27 19:34:14 -0500 |
commit | e817ae74da0e515db31907ebcb2d00bcf7c3f5bc (patch) | |
tree | 95a250a4d845b9c8f4f8416fc8962cfe1937951e /tests/serializers | |
parent | dd8ed64113947ed066b83e443053e389e8f77ebc (diff) | |
download | django-e817ae74da0e515db31907ebcb2d00bcf7c3f5bc.tar.gz |
Followed style guide for model attribute ordering.
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,) |