mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
newforms-admin: Removed an unnecessary import.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ba2d0feb72
commit
a88c887631
@ -99,7 +99,6 @@ def password_change_done(request, template_name='registration/password_change_do
|
||||
|
||||
# TODO: move to admin.py in the ModelAdmin
|
||||
def user_change_password(request, id):
|
||||
from django import oldforms
|
||||
if not request.user.has_perm('auth.change_user'):
|
||||
raise PermissionDenied
|
||||
user = get_object_or_404(User, pk=id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user