theses.views module

Bases: django.views.generic.edit.CreateView

form_class

alias of theses.forms.RequestThesisLinkForm

template_name = 'theses/request_thesislink.html'
success_url = '/personal_page/'
form_valid(form)[source]

If the form is valid, save the associated model.

get_form_kwargs()[source]

Return the keyword arguments for instantiating the form.

dispatch(request, *args, **kwargs)

Bases: django.views.generic.list.ListView

model

alias of theses.models.ThesisLink

template_name = 'theses/unvetted_thesislinks.html'
context_object_name = 'thesislinks'
dispatch(request, *args, **kwargs)

Bases: django.views.generic.edit.UpdateView

model

alias of theses.models.ThesisLink

form_class

alias of theses.forms.VetThesisLinkForm

template_name = 'theses/vet_thesislink.html'
success_url = '/theses/unvetted_thesislinks'
form_valid(form)[source]

If the form is valid, save the associated model.

dispatch(request, *args, **kwargs)
class theses.views.ThesisListView(**kwargs)[source]

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

model

alias of theses.models.ThesisLink

form

alias of theses.forms.ThesisLinkSearchForm

paginate_by = 10
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(**kwargs)[source]

Get the context for this view.

theses.views.thesis_detail(request, thesislink_id)[source]