careers.views module

class careers.views.JobOpeningCreateView(**kwargs)[source]

Bases: django.contrib.auth.mixins.UserPassesTestMixin, django.views.generic.edit.CreateView

model

alias of careers.models.JobOpening

form_class

alias of careers.forms.JobOpeningForm

success_url = '/careers/job_openings'
test_func()[source]
class careers.views.JobOpeningUpdateView(**kwargs)[source]

Bases: django.contrib.auth.mixins.UserPassesTestMixin, django.views.generic.edit.UpdateView

model

alias of careers.models.JobOpening

form_class

alias of careers.forms.JobOpeningForm

success_url = '/careers/job_openings'
test_func()[source]
class careers.views.JobOpeningListView(**kwargs)[source]

Bases: django.views.generic.list.ListView

model

alias of careers.models.JobOpening

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.

class careers.views.JobOpeningDetailView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

model

alias of careers.models.JobOpening

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

class careers.views.JobOpeningApplyView(**kwargs)[source]

Bases: django.views.generic.edit.CreateView

model

alias of careers.models.JobApplication

form_class

alias of careers.forms.JobApplicationForm

template_name = 'careers/jobopening_apply.html'
get_initial(*args, **kwargs)[source]

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

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

Insert the form into the context dict.

form_valid(form)[source]

If the form is valid, save the associated model.

careers.views.jobapplication_verify(request, uuid)[source]
class careers.views.JobApplicationDetailView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

model

alias of careers.models.JobApplication

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

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.