Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad BoolOpOr BoolOpAnd Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad body Return Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Call NameLoad BoolOpOr NameLoad Call NameLoad Str orelse Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad Dict Str NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad Str NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad Dict Str NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Return Call NameLoad BoolOpOr NameLoad Call NameLoad Str orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad Dict Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad orelse Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad
N/A django.core.urlresolvers reverse django.http HttpResponseRedirect django.template RequestContext django.shortcuts render_to_response django.utils.translation ugettext django.contrib.auth.decorators login_required django.contrib.admin.views.decorators staff_member_required models InvitationError Invitation InvitationStats forms InvitationForm RegistrationFormInvitation registration.signals user_registered apply_extra_context N/A N/A context extra_context N/A None N/A N/A N/A extra_context None N/A N/A extra_context N/A N/A N/A key value N/A N/A extra_context items N/A N/A N/A context N/A key N/A N/A N/A callable value N/A value value N/A context N/A invite N/A N/A request success_url form_class template_name extra_context N/A None InvitationForm invitation/invitation_form.html None N/A N/A 
    Create an invitation and send invitation email.

    Send invitation email and then redirect to success URL if the
    invitation form is valid. Redirect named URL ``invitation_unavailable``
    on InvitationError. Render invitation form template otherwise.

    **Required arguments:**

    None.

    **Optional arguments:**

    :success_url:
        The URL to redirect to on successful registration. Default value is
        ``None``, ``invitation_complete`` will be resolved in this case.

    :form_class:
        A form class to use for invitation. Takes ``request.user`` as first
        argument to its constructor. Must have an ``email`` field. Custom
        validation can be implemented here.

    :template_name:
        A custom template to use. Default value is
        ``invitation/invitation_form.html``.

    :extra_context:
        A dictionary of variables to add to the template context. Any
        callable object in this dictionary will be called to produce
        the end result which appears in the context.

    **Template:**

    ``invitation/invitation_form.html`` or ``template_name`` keyword
    argument.

    **Context:**

    A ``RequestContext`` instance is used rendering the template. Context,
    in addition to ``extra_context``, contains:

    :form:
        The invitation form.
     N/A N/A N/A request method POST N/A N/A form N/A form_class N/A request POST N/A request FILES N/A N/A N/A form is_valid N/A N/A N/A N/A invitation N/A N/A N/A Invitation objects invite N/A request user N/A N/A form cleaned_data N/A email N/A N/A N/A InvitationError N/A N/A N/A HttpResponseRedirect N/A reverse invitation_unavailable N/A N/A N/A invitation send_email request request N/A N/A HttpResponseRedirect N/A success_url N/A reverse invitation_complete N/A N/A form N/A form_class N/A context N/A apply_extra_context N/A RequestContext request extra_context N/A N/A render_to_response template_name N/A form form context_instance context N/A login_required register N/A N/A request invitation_key wrong_key_template redirect_to_if_authenticated success_url form_class template_name extra_context N/A invitation/wrong_invitation_key.html / None RegistrationFormInvitation registration/registration_form.html None N/A N/A 
    Allow a new user to register via invitation.

    Send invitation email and then redirect to success URL if the
    invitation form is valid. Redirect named URL ``invitation_unavailable``
    on InvitationError. Render invitation form template otherwise. Sends
    registration.signals.user_registered after creating the user.

    **Required arguments:**

    :invitation_key:
        An invitation key in the form of ``[\da-e]{40}``

    **Optional arguments:**

    :wrong_key_template:
        Template to be used when an invalid invitation key is supplied.
        Default value is ``invitation/wrong_invitation_key.html``.

    :redirect_to_if_authenticated:
        URL to be redirected when an authenticated user calls this view.
        Defaults value is ``/``

    :success_url:
        The URL to redirect to on successful registration. Default value is
        ``None``, ``invitation_registered`` will be resolved in this case.

    :form_class:
        A form class to use for registration. Takes the invited email as first
        argument to its constructor.

    :template_name:
        A custom template to use. Default value is
        ``registration/registration_form.html``.

    :extra_context:
        A dictionary of variables to add to the template context. Any
        callable object in this dictionary will be called to produce
        the end result which appears in the context.

    **Templates:**

    ``invitation/invitation_form.html`` or ``template_name`` keyword
    argument as the *main template*.

    ``invitation/wrong_invitation_key.html`` or ``wrong_key_template`` keyword
    argument as the *wrong key template*.

    **Context:**

    ``RequestContext`` instances are used rendering both templates. Context,
    in addition to ``extra_context``, contains:

    For wrong key template
        :invitation_key: supplied invitation key

    For main template
        :form:
            The registration form.
     N/A N/A N/A N/A request user is_authenticated N/A N/A N/A HttpResponseRedirect redirect_to_if_authenticated N/A N/A N/A invitation N/A N/A N/A Invitation objects find invitation_key N/A N/A N/A N/A Invitation DoesNotExist N/A N/A context N/A apply_extra_context N/A RequestContext request extra_context N/A N/A render_to_response wrong_key_template N/A invitation_key invitation_key context_instance context N/A N/A N/A request method POST N/A N/A form N/A form_class N/A invitation email N/A request POST N/A request FILES N/A N/A N/A form is_valid N/A N/A new_user N/A N/A form save N/A N/A N/A invitation mark_accepted new_user N/A N/A N/A user_registered send sender invitation user new_user request request N/A N/A HttpResponseRedirect N/A success_url N/A reverse invitation_registered N/A N/A form N/A form_class N/A invitation email N/A context N/A apply_extra_context N/A RequestContext request extra_context N/A N/A render_to_response template_name N/A form form context_instance context N/A reward N/A N/A request N/A N/A N/A 
    Add invitations to users with high invitation performance and redirect
    refferring page.
     N/A N/A rewarded_users invitations_given N/A N/A N/A InvitationStats objects reward N/A rewarded_users N/A N/A message N/A N/A ugettext %(users)s users are given a total of %(invitations)s invitations. N/A users invitations rewarded_users invitations_given N/A N/A message N/A ugettext No user has performance above threshold, no invitations awarded. N/A N/A N/A N/A N/A request user message_set create message message N/A N/A HttpResponseRedirect N/A N/A N/A request META get HTTP_REFERER / N/A staff_member_required