cv.views

Reference for cv.views generated from docstrings.

class cv.views.CVListMixin[source]

Class of helper functions to gather data for CV sections.

sum_items(dict)[source]

Sum items across dictionaries.

get_cv_list(model)[source]

Gather data for CV section into dictionaries.

get_cv_primary_positions()[source]

Return dictionary of CV data with current positions.

class cv.views.CVView(**kwargs)[source]

An HTML representation of a CV.

get_context_data(**kwargs)[source]

Return dictionary of different types of CV entries.

class cv.views.CVListView(**kwargs)[source]

Creates view of all instances for a particular section.

dispatch(request, *args, **kwargs)[source]

Set class parameters based on URL and dispatch.

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_template_names()[source]

Returns the name template to use to display a list of model instances.

Currently returns cv/lists/<model_name>_list.html.

Might add a generic template for vitae models in the future.

class cv.views.CVDetailView(**kwargs)[source]

Creates view of a single instance of a CV item.

get_template_names()[source]

Returns the name template to use to display a list of model instances.

Currently returns cv/lists/<model_name>_detail.html.

Might add a generic template for vitae models in the future.

cv.views.citation_view(request, model_name, slug, format)[source]

Returns view to allow citation to be downloaded to citation management software.