mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Followed style guide for model attribute ordering.
This commit is contained in:
parent
dd8ed64113
commit
e817ae74da
27 changed files with 148 additions and 135 deletions
|
@ -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,)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue