Code linting
This commit is contained in:
parent
5089e5a0af
commit
db1ad8b4d8
6 changed files with 7 additions and 7 deletions
|
@ -22,6 +22,6 @@ class BlogToolbar(CMSToolbar):
|
|||
|
||||
current_post = getattr(self.request, BLOG_CURRENT_POST_IDENTIFIER, None)
|
||||
if current_post and self.request.user.has_perm('djangocms_blog.change_post'): # pragma: no cover
|
||||
admin_menu.add_modal_item(_('Edit Post'),reverse(
|
||||
admin_menu.add_modal_item(_('Edit Post'), reverse(
|
||||
'admin:djangocms_blog_post_change', args=(current_post.pk,)),
|
||||
active=True)
|
|
@ -3,7 +3,6 @@ import datetime
|
|||
from django.utils.translation import get_language
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.urlresolvers import resolve
|
||||
from django.http import Http404
|
||||
from django.views.generic import ListView, DetailView
|
||||
|
||||
from parler.views import ViewUrlMixin, TranslatableSlugMixin
|
||||
|
|
|
@ -4,3 +4,4 @@ coveralls
|
|||
mock>=1.0.1
|
||||
nose>=1.3.0
|
||||
django-nose>=1.2
|
||||
flake8
|
||||
|
|
Loading…
Reference in a new issue