Forms

Return to API Reference.

ProjectCreateForm

class projector.forms.ProjectCreateForm(*args, **kwargs)

ProjectEditForm

class projector.forms.ProjectEditForm(*args, **kwargs)

ProjectForkForm

class projector.forms.ProjectForkForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Currently dummy form which is enough for fork page.

ConfigForm

class projector.forms.ConfigForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)

ModelForm for Config.

UserProfileForm

class projector.forms.UserProfileForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)

ExternalForkWizard

class projector.forms.ExternalForkWizard(form_list, initial=None)

Form wizard which processes each step of external forking.

See also

External fork

UserConvertToTeamForm

class projector.forms.UserConvertToTeamForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Simple form which converts user into Team.

Note

User instance has to be set within a view:

def aview(request):
    form = UserConvertToTeamForm(request.POST or None)
    form.user = request.user
    # ...

See also

Convert to Team

clean()

Cleans confirm field. If checked and user attribute has been set, TeamManager‘s method convert_from_user is called.

DashboardAddMemberForm

class projector.forms.DashboardAddMemberForm(group, *args, **kwargs)

Form providing ability to add user to the group. It is useful for users converted into Team to add new members.

clean_user()

Raises ValidationError if user is already member of given group or user does not exist.

save(commit=True)

Adds chosen user to the group.

Table Of Contents

Previous topic

Exceptions

Next topic

Managers

This Page