fix save button
authorraph
Thu, 10 Dec 2009 16:45:42 +0100
changeset 48 695fdf9ba75e
parent 47 7a64d8892f70
child 49 1b92513d7081
fix save button
src/cm/views/user.py
--- a/src/cm/views/user.py	Thu Dec 10 16:41:01 2009 +0100
+++ b/src/cm/views/user.py	Thu Dec 10 16:45:42 2009 +0100
@@ -49,7 +49,7 @@
     
     if request.method == 'POST':
         # bulk apply
-        if 'apply' in request.POST:
+        if 'apply' in request.POST and not 'save' in request.POST:
             action = request.POST.get('action', None)
             user_profile_keys = get_keys_from_dict(request.POST, 'check-').keys()
             if action == 'disable':