8

Codestyle fixes (flake8)

This also adds the flake8 dependencies to the test extras for
installation.
This commit is contained in:
Michael van Tellingen
2017-05-28 09:13:08 +02:00
parent 55da67523f
commit 3eac2cd4dd
21 changed files with 123 additions and 114 deletions

View File

@@ -77,7 +77,7 @@ class Segment(ClusterableModel):
class PersonalisablePage(Page):
"""The personalisable page model. Allows creation of variants with linked
segments.
"""
canonical_page = models.ForeignKey(
'self', related_name='variations', on_delete=models.SET_NULL,
@@ -130,7 +130,7 @@ class PersonalisablePage(Page):
def get_edit_handler(cls):
"""Add additional edit handlers to pages that are allowed to have
variations.
"""
tabs = []
if cls.content_panels: