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)
|
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
|
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,)),
|
'admin:djangocms_blog_post_change', args=(current_post.pk,)),
|
||||||
active=True)
|
active=True)
|
||||||
|
|
|
@ -14,5 +14,5 @@ class LatestEntriesForm(forms.ModelForm):
|
||||||
class Media:
|
class Media:
|
||||||
css = {
|
css = {
|
||||||
'all': ('%sdjangocms_blog/css/%s' % (settings.STATIC_URL,
|
'all': ('%sdjangocms_blog/css/%s' % (settings.STATIC_URL,
|
||||||
"djangocms_blog_admin.css"),)
|
"djangocms_blog_admin.css"),)
|
||||||
}
|
}
|
|
@ -3,7 +3,6 @@ import datetime
|
||||||
from django.utils.translation import get_language
|
from django.utils.translation import get_language
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.core.urlresolvers import resolve
|
from django.core.urlresolvers import resolve
|
||||||
from django.http import Http404
|
|
||||||
from django.views.generic import ListView, DetailView
|
from django.views.generic import ListView, DetailView
|
||||||
|
|
||||||
from parler.views import ViewUrlMixin, TranslatableSlugMixin
|
from parler.views import ViewUrlMixin, TranslatableSlugMixin
|
||||||
|
|
|
@ -4,3 +4,4 @@ coveralls
|
||||||
mock>=1.0.1
|
mock>=1.0.1
|
||||||
nose>=1.3.0
|
nose>=1.3.0
|
||||||
django-nose>=1.2
|
django-nose>=1.2
|
||||||
|
flake8
|
||||||
|
|
Loading…
Reference in a new issue