Cleanup code

This commit is contained in:
Iacopo Spalletti 2016-02-11 23:02:20 +01:00
parent fcc9d3ace1
commit 33d2371647
2 changed files with 3 additions and 4 deletions

View file

@ -9,10 +9,10 @@ from django import forms
from django.conf import settings from django.conf import settings
from django.conf.urls import url from django.conf.urls import url
from django.contrib import admin 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.http import HttpResponseRedirect
from django.utils.six import callable 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 parler.admin import TranslatableAdmin
from .cms_appconfig import BlogConfig from .cms_appconfig import BlogConfig

View file

@ -3,8 +3,7 @@ from __future__ import absolute_import, print_function, unicode_literals
from cms.toolbar_base import CMSToolbar from cms.toolbar_base import CMSToolbar
from cms.toolbar_pool import toolbar_pool from cms.toolbar_pool import toolbar_pool
from cms.utils.i18n import force_language from cms.utils.urlutils import admin_reverse
from cms.utils.urlutils import admin_reverse, add_url_parameters
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.utils.translation import override, ugettext_lazy as _ from django.utils.translation import override, ugettext_lazy as _