Exemple #1
0
def edit_member(request,
                group_slug,
                username,
                form_class=EditGroupMemberForm,
                template_name=MEM_EDIT_TEMPLATE,
                detail_template_name=MEM_DETAIL_TEMPLATE):
    return members.edit_member(request, group_slug, username, Community,
                               form_class, template_name, detail_template_name)
Exemple #2
0
def edit_member(request, group_slug, username, form_class=EditNetworkMemberForm, template_name=MEM_EDIT_TEMPLATE,
        detail_template_name=MEM_DETAIL_TEMPLATE):
    
    validated = update_magic_lists(request, group_slug, username, form_class)
        
    if validated:
        return members.edit_member(request, group_slug, username, Network, form_class, template_name, detail_template_name)
    else:
        request.user.message_set.create(message='User is already an exec of another chapter!')
        return HttpResponseRedirect(reverse('network_members_index', kwargs={'group_slug': group_slug}))
Exemple #3
0
def edit_member(request,
                group_slug,
                username,
                form_class=EditNetworkMemberForm,
                template_name=MEM_EDIT_TEMPLATE,
                detail_template_name=MEM_DETAIL_TEMPLATE):

    # update national rep lists and exec lists
    validated = update_magic_lists(request, group_slug, username, form_class)

    if validated:
        return members.edit_member(request, group_slug, username, Network,
                                   form_class, template_name,
                                   detail_template_name)
    else:
        request.user.message_set.create(
            message='User is already an exec of another chapter!')
        return HttpResponseRedirect(
            reverse('network_members_index', kwargs={'group_slug':
                                                     group_slug}))
Exemple #4
0
def edit_member(request, group_slug, username, form_class=EditGroupMemberForm, template_name=MEM_EDIT_TEMPLATE,
        detail_template_name=MEM_DETAIL_TEMPLATE):
    return members.edit_member(request, group_slug, username, Community, form_class, template_name, detail_template_name)
Exemple #5
0
def edit_member(request, group_slug, username, form_class=EditNetworkMemberForm, template_name=MEM_EDIT_TEMPLATE,
        detail_template_name=MEM_DETAIL_TEMPLATE):
    
    update_magic_lists(request, group_slug, username, form_class)
        
    return members.edit_member(request, group_slug, username, Network, form_class, template_name, detail_template_name)