Code linting
This commit is contained in:
parent
5089e5a0af
commit
db1ad8b4d8
6 changed files with 7 additions and 7 deletions
2
Makefile
2
Makefile
|
@ -43,4 +43,4 @@ release: clean
|
|||
|
||||
sdist: clean
|
||||
python setup.py sdist
|
||||
ls -l dist
|
||||
ls -l dist
|
||||
|
|
|
@ -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)
|
||||
active=True)
|
||||
|
|
|
@ -184,4 +184,4 @@ class Counter(dict):
|
|||
newcount = _min(self[elem], other[elem])
|
||||
if newcount > 0:
|
||||
result[elem] = newcount
|
||||
return result
|
||||
return result
|
||||
|
|
|
@ -14,5 +14,5 @@ class LatestEntriesForm(forms.ModelForm):
|
|||
class Media:
|
||||
css = {
|
||||
'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.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