diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py
index 3900e05..023cb8f 100644
a
|
b
|
|
1 | | from django.contrib.auth.forms import UserCreationForm |
2 | 1 | from django.contrib.auth.models import User, Group |
3 | 2 | from django.core.exceptions import PermissionDenied |
4 | 3 | from django import oldforms, template |
… |
… |
class UserAdmin(admin.ModelAdmin):
|
25 | 24 | filter_horizontal = ('user_permissions',) |
26 | 25 | |
27 | 26 | def add_view(self, request): |
| 27 | from django.contrib.auth.forms import UserCreationForm |
28 | 28 | if not self.has_change_permission(request): |
29 | 29 | raise PermissionDenied |
30 | 30 | if request.method == 'POST': |