Ejemplo n.º 1
0
def new_member(request,
               group_slug,
               form_class=GroupMemberForm,
               template_name=MEM_NEW_TEMPLATE,
               index_template_name=MEM_INDEX_TEMPLATE,
               force_join=False):
    return members.new_member(request, group_slug, Community, form_class,
                              template_name, index_template_name, force_join)
Ejemplo n.º 2
0
def new_member(request, group_slug, form_class=NetworkMemberForm, template_name=MEM_NEW_TEMPLATE,
        index_template_name=MEM_INDEX_TEMPLATE, force_join=False):

    validated = update_magic_lists(request, group_slug, None, form_class)
        
    if validated:
        return members.new_member(request, group_slug, Network, form_class, template_name, index_template_name, force_join)
    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}))
Ejemplo n.º 3
0
def new_member(request,
               group_slug,
               form_class=NetworkMemberForm,
               template_name=MEM_NEW_TEMPLATE,
               index_template_name=MEM_INDEX_TEMPLATE,
               force_join=False):

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

    if validated:
        return members.new_member(request, group_slug, Network, form_class,
                                  template_name, index_template_name,
                                  force_join)
    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}))
Ejemplo n.º 4
0
def new_member(request, group_slug, form_class=GroupMemberForm, template_name=MEM_NEW_TEMPLATE,
        index_template_name=MEM_INDEX_TEMPLATE):
    return members.new_member(request, group_slug, Community, form_class, template_name, index_template_name)
Ejemplo n.º 5
0
def new_member(request, group_slug, form_class=NetworkMemberForm, template_name=MEM_NEW_TEMPLATE,
        index_template_name=MEM_INDEX_TEMPLATE):

    update_magic_lists(request, group_slug, None, form_class)
        
    return members.new_member(request, group_slug, Network, form_class, template_name, index_template_name)