Clean up (unused imports, PEP8, etc)
This commit is contained in:
@@ -31,8 +31,8 @@ bind_links(['current_user_details', 'current_user_edit', 'password_change_view']
|
||||
register_top_menu('about', link=Link(text=_(u'about'), view='about_view', sprite='information'), position=-1)
|
||||
|
||||
|
||||
@receiver(post_syncdb, dispatch_uid='create_superuser', sender=auth_models)
|
||||
def create_superuser(sender, **kwargs):
|
||||
@receiver(post_syncdb, dispatch_uid='create_superuser_processor', sender=auth_models)
|
||||
def create_superuser_processor(sender, **kwargs):
|
||||
"""
|
||||
From https://github.com/lambdalisue/django-qwert/blob/master/qwert/autoscript/__init__.py
|
||||
From http://stackoverflow.com/questions/1466827/ --
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import types
|
||||
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db.models.base import ModelBase
|
||||
|
||||
@@ -67,4 +67,3 @@ Setting(
|
||||
default=False,
|
||||
description=_(u'Allow non authenticated users, access to all views'),
|
||||
)
|
||||
|
||||
|
||||
@@ -236,8 +236,8 @@ def password_change_view(request):
|
||||
"""
|
||||
Password change wrapper for better control
|
||||
"""
|
||||
context={'title': _(u'Current user password change')}
|
||||
|
||||
context = {'title': _(u'Current user password change')}
|
||||
|
||||
return password_change(
|
||||
request,
|
||||
extra_context=context,
|
||||
|
||||
Reference in New Issue
Block a user