src/cm/views/user.py
changeset 48 695fdf9ba75e
parent 44 c27132146767
child 83 a431fee55c96
equal deleted inserted replaced
47:7a64d8892f70 48:695fdf9ba75e
    47     
    47     
    48     UserRole.objects.create_userroles_text(None)
    48     UserRole.objects.create_userroles_text(None)
    49     
    49     
    50     if request.method == 'POST':
    50     if request.method == 'POST':
    51         # bulk apply
    51         # bulk apply
    52         if 'apply' in request.POST:
    52         if 'apply' in request.POST and not 'save' in request.POST:
    53             action = request.POST.get('action', None)
    53             action = request.POST.get('action', None)
    54             user_profile_keys = get_keys_from_dict(request.POST, 'check-').keys()
    54             user_profile_keys = get_keys_from_dict(request.POST, 'check-').keys()
    55             if action == 'disable':
    55             if action == 'disable':
    56                 for user_profile_key in user_profile_keys:
    56                 for user_profile_key in user_profile_keys:
    57                     profile = UserProfile.objects.get(key=user_profile_key)
    57                     profile = UserProfile.objects.get(key=user_profile_key)