Followed style guide for model attribute ordering.

This commit is contained in:
Matt Wiens 2018-12-27 16:34:14 -08:00 committed by Tim Graham
parent dd8ed64113
commit e817ae74da
27 changed files with 148 additions and 135 deletions

View file

@ -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,)