colleges.views module

class colleges.views.EditorialCollegesView(**kwargs)[source]

Bases: django.views.generic.list.ListView

model

alias of colleges.models.Fellowship

template_name = 'colleges/colleges.html'
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

get_context_data(*args, **kwargs)[source]

Get the context for this view.

class colleges.views.EditorialCollegeDetailView(**kwargs)[source]

Bases: django.views.generic.list.ListView

model

alias of colleges.models.Fellowship

template_name = 'colleges/college_detail.html'
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

get_context_data(*args, **kwargs)[source]

Get the context for this view.

class colleges.views.FellowshipCreateView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.edit.CreateView

Create a new Fellowship instance for an existing Contributor.

A new Fellowship can be created only for: * an existing Fellow who is renewed * out of an existing PotentialFellowship (elected, or named by Admin)

If the elected/named Fellow does not yet have a Contributor object, this must be set up first.

permission_required = 'scipost.can_manage_college_composition'
form_class

alias of colleges.forms.FellowshipForm

template_name = 'colleges/fellowship_form.html'
get_initial()[source]

Return the initial data to use for forms on this view.

form_valid(form)[source]

Save the new Fellowship, add College rights and update the status of any PotentialFellowship.

class colleges.views.FellowshipUpdateView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.edit.UpdateView

Update an existing Fellowship.

permission_required = 'scipost.can_manage_college_composition'
model

alias of colleges.models.Fellowship

form_class

alias of colleges.forms.FellowshipForm

template_name = 'colleges/fellowship_form.html'
class colleges.views.FellowshipDetailView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.detail.DetailView

permission_required = 'scipost.can_manage_college_composition'
model

alias of colleges.models.Fellowship

class colleges.views.FellowshipListView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, scipost.mixins.PaginationMixin, django.views.generic.list.ListView

List Fellowship instances (accessible to College managers).

permission_required = 'scipost.can_manage_college_composition'
model

alias of colleges.models.Fellowship

paginate_by = 25
get_queryset()[source]

Return a queryset of Fellowships filtered by optional GET data.

get_context_data(**kwargs)[source]

Get the context for this view.

class colleges.views.FellowshipStartEmailView(*args, **kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, mails.views.MailView

After setting up a new Fellowship, send an info email to the new Fellow.

permission_required = 'scipost.can_manage_college_composition'
mail_code = 'fellows/email_fellow_fellowship_start'
success_url = '/colleges/fellowships/'
colleges.views.submission_pool(request, identifier_w_vn_nr)[source]

List all Fellowships related to Submission.

colleges.views.submission_voting_fellows(request, identifier_w_vn_nr)[source]

List all Fellowships selected for voting on the EIC related to Submission.

colleges.views.submission_add_fellowship_voting(request, identifier_w_vn_nr)[source]

Add Fellowship to the Fellows voting on the EICRecommendation of a Submission.

colleges.views.fellowship_remove_submission_voting(request, id, identifier_w_vn_nr)[source]

Remove Fellow from the EICRecommendation voting group for the Submission.

colleges.views.submission_add_fellowship(request, identifier_w_vn_nr)[source]

Add Fellowship to the pool of a Submission.

colleges.views.fellowship_remove_submission(request, id, identifier_w_vn_nr)[source]

Remove Submission from the pool of a Fellowship.

colleges.views.fellowship_add_submission(request, id)[source]

Add Submission to the pool of a Fellowship.

colleges.views.fellowship_remove_proceedings(request, id, proceedings_id)[source]

Remove Proceedings from the pool of a Fellowship.

colleges.views.fellowship_add_proceedings(request, id)[source]

Add Proceedings to the pool of a Fellowship.

class colleges.views.PotentialFellowshipCreateView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, scipost.mixins.RequestViewMixin, django.views.generic.edit.CreateView

Formview to create a new Potential Fellowship.

permission_required = 'scipost.can_add_potentialfellowship'
form_class

alias of colleges.forms.PotentialFellowshipForm

template_name = 'colleges/potentialfellowship_form.html'
success_url = '/colleges/potentialfellowships/'
class colleges.views.PotentialFellowshipUpdateView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, scipost.mixins.RequestViewMixin, django.views.generic.edit.UpdateView

Formview to update a Potential Fellowship.

permission_required = 'scipost.can_manage_college_composition'
model

alias of colleges.models.PotentialFellowship

form_class

alias of colleges.forms.PotentialFellowshipForm

template_name = 'colleges/potentialfellowship_form.html'
success_url = '/colleges/potentialfellowships/'
class colleges.views.PotentialFellowshipUpdateStatusView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.edit.UpdateView

Formview to update the status of a Potential Fellowship.

permission_required = 'scipost.can_manage_college_composition'
model

alias of colleges.models.PotentialFellowship

fields = ['status']
success_url = '/colleges/potentialfellowships/'
form_valid(form)[source]

If the form is valid, save the associated model.

class colleges.views.PotentialFellowshipDeleteView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.edit.DeleteView

Delete a Potential Fellowship.

permission_required = 'scipost.can_manage_college_composition'
model

alias of colleges.models.PotentialFellowship

success_url = '/colleges/potentialfellowships/'
class colleges.views.PotentialFellowshipListView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, scipost.mixins.PaginationMixin, django.views.generic.list.ListView

List the PotentialFellowship object instances.

permission_required = 'scipost.can_view_potentialfellowship_list'
model

alias of colleges.models.PotentialFellowship

paginate_by = 25
get_queryset()[source]

Return a queryset of PotentialFellowships using optional GET data.

get_context_data(**kwargs)[source]

Get the context for this view.

class colleges.views.PotentialFellowshipDetailView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.detail.DetailView

permission_required = 'scipost.can_view_potentialfellowship_list'
model

alias of colleges.models.PotentialFellowship

get_context_data(*args, **kwargs)[source]

Insert the single object into the context dict.

colleges.views.vote_on_potential_fellowship(request, potfel_id, vote)[source]
class colleges.views.PotentialFellowshipInitialEmailView(*args, **kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, mails.views.MailView

Send a templated email to a Potential Fellow.

permission_required = 'scipost.can_manage_college_composition'
mail_code = 'potentialfellowships/invite_potential_fellow_initial'
success_url = '/colleges/potentialfellowships/'
form_valid(form)[source]

Create an event associated to this outgoing email.

class colleges.views.PotentialFellowshipEventCreateView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.edit.CreateView

Add an event for a Potential Fellowship.

permission_required = 'scipost.can_manage_college_composition'
form_class

alias of colleges.forms.PotentialFellowshipEventForm

success_url = '/colleges/potentialfellowships/'
form_valid(form)[source]

If the form is valid, save the associated model.