mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +00:00
magic-removal: Fixed #1494 -- Added missing import to django.contirb.auth.decorators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7a0b04fdc3
commit
8addbfa0d2
@ -1,4 +1,5 @@
|
|||||||
from django.contrib.auth import LOGIN_URL, REDIRECT_FIELD_NAME
|
from django.contrib.auth import LOGIN_URL, REDIRECT_FIELD_NAME
|
||||||
|
from django.http import HttpResponseRedirect
|
||||||
|
|
||||||
def user_passes_test(test_func, login_url=LOGIN_URL):
|
def user_passes_test(test_func, login_url=LOGIN_URL):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user