diff --git a/djangocms_blog/admin.py b/djangocms_blog/admin.py index d811d73..fc68837 100755 --- a/djangocms_blog/admin.py +++ b/djangocms_blog/admin.py @@ -9,10 +9,10 @@ from django import forms from django.conf import settings from django.conf.urls import url from django.contrib import admin -from django.core.urlresolvers import reverse, resolve +from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.utils.six import callable -from django.utils.translation import ugettext_lazy as _, get_language_from_request +from django.utils.translation import get_language_from_request, ugettext_lazy as _ from parler.admin import TranslatableAdmin from .cms_appconfig import BlogConfig diff --git a/djangocms_blog/cms_toolbar.py b/djangocms_blog/cms_toolbar.py index 9892ed5..00a3157 100644 --- a/djangocms_blog/cms_toolbar.py +++ b/djangocms_blog/cms_toolbar.py @@ -3,8 +3,7 @@ from __future__ import absolute_import, print_function, unicode_literals from cms.toolbar_base import CMSToolbar from cms.toolbar_pool import toolbar_pool -from cms.utils.i18n import force_language -from cms.utils.urlutils import admin_reverse, add_url_parameters +from cms.utils.urlutils import admin_reverse from django.core.urlresolvers import reverse from django.utils.translation import override, ugettext_lazy as _