summaryrefslogtreecommitdiff
path: root/tests/m2m_multiple
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-09-03 14:22:21 -0400
committerTim Graham <timograham@gmail.com>2013-09-03 14:22:21 -0400
commit5649c0af9d90ba1368abbe6c233ee61c976c8137 (patch)
tree78df445094924d3ed21a236c694c503d3cc723f3 /tests/m2m_multiple
parentcb98ffe8f45d77a7e892fbb80b47de999062dc74 (diff)
downloaddjango-5649c0af9d90ba1368abbe6c233ee61c976c8137.tar.gz
Fixed "indentation is not a multiple of four" pep8 issues.
Diffstat (limited to 'tests/m2m_multiple')
-rw-r--r--tests/m2m_multiple/models.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/m2m_multiple/models.py b/tests/m2m_multiple/models.py
index c2e3b030a4..9c5b755905 100644
--- a/tests/m2m_multiple/models.py
+++ b/tests/m2m_multiple/models.py
@@ -14,21 +14,23 @@ from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Category(models.Model):
name = models.CharField(max_length=20)
+
class Meta:
- ordering = ('name',)
+ ordering = ('name',)
def __str__(self):
return self.name
+
@python_2_unicode_compatible
class Article(models.Model):
headline = models.CharField(max_length=50)
pub_date = models.DateTimeField()
primary_categories = models.ManyToManyField(Category, related_name='primary_article_set')
secondary_categories = models.ManyToManyField(Category, related_name='secondary_article_set')
+
class Meta:
- ordering = ('pub_date',)
+ ordering = ('pub_date',)
def __str__(self):
return self.headline
-