From 91df9a8b43178f1f82bb46f974280c6f5de81363 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Sat, 30 Apr 2016 00:45:17 +0200 Subject: [PATCH] Fix code style --- djangocms_blog/feeds.py | 10 +++++----- djangocms_blog/models.py | 2 +- djangocms_blog/settings.py | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/djangocms_blog/feeds.py b/djangocms_blog/feeds.py index 95635f6..64bd8f1 100644 --- a/djangocms_blog/feeds.py +++ b/djangocms_blog/feeds.py @@ -1,19 +1,19 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals -from django.core.cache import cache -from django.utils.encoding import force_text -from django.utils.feedgenerator import Rss201rev2Feed, rfc2822_date - from aldryn_apphooks_config.utils import get_app_instance from django.contrib.sites.models import Site from django.contrib.syndication.views import Feed +from django.core.cache import cache from django.core.urlresolvers import reverse +from django.utils.encoding import force_text +from django.utils.feedgenerator import Rss201rev2Feed, rfc2822_date from django.utils.safestring import mark_safe -from django.utils.translation import ugettext as _, get_language_from_request +from django.utils.translation import get_language_from_request, ugettext as _ from djangocms_blog.settings import get_setting from djangocms_blog.views import PostDetailView + from .models import Post diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index a80211c..bc0cad9 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -14,7 +14,7 @@ from django.db import models from django.db.models.signals import post_save, pre_delete from django.dispatch import receiver from django.utils import timezone -from django.utils.encoding import force_text, python_2_unicode_compatible, force_bytes +from django.utils.encoding import force_bytes, force_text, python_2_unicode_compatible from django.utils.html import escape, strip_tags from django.utils.text import slugify from django.utils.translation import get_language, ugettext_lazy as _ diff --git a/djangocms_blog/settings.py b/djangocms_blog/settings.py index 3e0c203..e9fb0e0 100644 --- a/djangocms_blog/settings.py +++ b/djangocms_blog/settings.py @@ -1,8 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals -from django.utils.safestring import mark_safe - MENU_TYPE_COMPLETE = 'complete' MENU_TYPE_CATEGORIES = 'categories' MENU_TYPE_POSTS = 'posts'