Commits

Matthew Schinckel  committed 0899d73

Use an error status when multiple groups selected for duplicate.

  • Participants
  • Parent commits fe2d330

Comments (0)

Files changed (1)

File auth_additions/admin.py

 from django.views.generic.simple import direct_to_template
 from django.contrib import admin
 from django.contrib import auth
+from django.contrib import messages
 
 from auth_additions.forms import UserChangeForm
 from admin_additions.patchers import add_actions, patch_admin
     form = None
     
     if queryset.count() != 1:
-        self.message_user(request,
+        messages.error(request,
             "You may only duplicate one group at a time."
         )
         return HttpResponseRedirect(request.get_full_path())