Code linting

This commit is contained in:
Iacopo Spalletti 2014-06-11 21:25:10 +02:00
parent 5089e5a0af
commit db1ad8b4d8
6 changed files with 7 additions and 7 deletions

View file

@ -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)

View file

@ -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"),)
} }

View file

@ -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

View file

@ -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