1. Peter Sanchez
  2. django-impersonate

Commits

Peter Sanchez  committed ce2d8fe

Some bad practice import cleanup.

  • Participants
  • Parent commits 791bdf8
  • Branches default
  • Tags 0.5.2

Comments (0)

Files changed (4)

File impersonate/__init__.py

View file
  • Ignore whitespace
-__version__ = '0.5.1'
+__version__ = '0.5.2'

File impersonate/decorators.py

View file
  • Ignore whitespace
 from django.shortcuts import redirect
 from django.utils.http import urlquote
 from django.contrib.auth import REDIRECT_FIELD_NAME
-from helpers import get_redir_path, check_allow_impersonate
+from impersonate.helpers import get_redir_path, check_allow_impersonate
 
 
 def allowed_user_required(view_func):

File impersonate/middleware.py

View file
  • Ignore whitespace
 from django.conf import settings
-from helpers import check_allow_for_user, check_allow_for_uri
+from impersonate.helpers import check_allow_for_user, check_allow_for_uri
 
 
 class ImpersonateMiddleware(object):

File impersonate/views.py

View file
  • Ignore whitespace
 from django.contrib.auth.models import User
 from django.shortcuts import get_object_or_404, redirect, render_to_response
 from decorators import allowed_user_required
-from helpers import get_redir_path, get_paginator, check_allow_for_user, \
-                    users_impersonable
+from impersonate.helpers import get_redir_path, get_paginator, \
+                                check_allow_for_user, users_impersonable
 
 
 @allowed_user_required