Ticket #6718: logout_importerror.diff

File logout_importerror.diff, 716 bytes (added by Eric B <ebartels@…>, 17 years ago)
  • django/contrib/auth/admin.py

    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
    21from django.contrib.auth.models import User, Group
    32from django.core.exceptions import PermissionDenied
    43from django import oldforms, template
    class UserAdmin(admin.ModelAdmin):  
    2524    filter_horizontal = ('user_permissions',)
    2625
    2726    def add_view(self, request):
     27        from django.contrib.auth.forms import UserCreationForm
    2828        if not self.has_change_permission(request):
    2929            raise PermissionDenied
    3030        if request.method == 'POST':
Back to Top