publishers.views module

class publishers.views.PublisherView(**kwargs)[source]

Bases: publishers.views.SlugDetailView

get_context_data(**kwargs)[source]
model

alias of Publisher

template_name = u'publishers/policy.html'
view_name = u'publisher'
class publishers.views.PublishersView(**kwargs)[source]

Bases: haystack.generic_views.SearchView

form_class

alias of PublisherForm

get_context_data(**kwargs)[source]
get_form_kwargs()[source]

We make sure the search is valid even if no parameter was passed, in which case we add a default empty query. Otherwise the search form is not bound and search fails.

paginate_by = 20
queryset = <SearchQuerySet: query=<search.SearchQuery object>, using=None>
template_name = u'publishers/list.html'
class publishers.views.SlugDetailView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

A DetailView for objects with a slug field for human-friendly URLs: redirects if the slug in the request does not match the object’s slug.

get(request, *args, **kwargs)[source]
redirect(**kwargs)[source]
view_name = None
publishers.views.varyQueryArguments(key, args, possibleValues)[source]