Fixed "indentation is not a multiple of four" pep8 issues.
This commit is contained in:
parent
cb98ffe8f4
commit
5649c0af9d
|
@ -38,6 +38,7 @@ class override_settings_tags(override_settings):
|
|||
# settings.MESSAGE_TAGS, we need to update that constant too.
|
||||
self.old_level_tags = base.LEVEL_TAGS
|
||||
base.LEVEL_TAGS = utils.get_level_tags()
|
||||
|
||||
def disable(self):
|
||||
super(override_settings_tags, self).disable()
|
||||
base.LEVEL_TAGS = self.old_level_tags
|
||||
|
|
|
@ -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',)
|
||||
|
||||
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',)
|
||||
|
||||
def __str__(self):
|
||||
return self.headline
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ class Thing(models.Model):
|
|||
having = models.CharField(max_length=1)
|
||||
where = models.DateField(max_length=1)
|
||||
has_hyphen = models.CharField(max_length=1, db_column='has-hyphen')
|
||||
|
||||
class Meta:
|
||||
db_table = 'select'
|
||||
|
||||
|
|
Loading…
Reference in New Issue