Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

newforms-admin: Fixed #6718 -- Removed a circular import in contrib/a…

…uth/ Thanks Eric B.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 608af1f9d7cb51dfbf89264e7df9e014313f3d06 1 parent dfe06aa
@brosner brosner authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/auth/
3  django/contrib/auth/
@@ -1,4 +1,3 @@
-from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User, Group
from django.core.exceptions import PermissionDenied
from django import oldforms, template
@@ -25,6 +24,8 @@ class UserAdmin(admin.ModelAdmin):
filter_horizontal = ('user_permissions',)
def add_view(self, request):
+ # avoid a circular import. see #6718.
+ from django.contrib.auth.forms import UserCreationForm
if not self.has_change_permission(request):
raise PermissionDenied
if request.method == 'POST':
Please sign in to comment.
Something went wrong with that request. Please try again.