djangocms_blog.views

class djangocms_blog.views.AuthorEntriesView(**kwargs)
get_context_data(**kwargs)

Get the context for this view.

get_queryset()

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 djangocms_blog.views.BaseBlogListView
class djangocms_blog.views.BaseBlogView
get_view_url()

This method is used by the get_translated_url template tag.

By default, it uses the view_url_name to generate an URL. When the URL args and kwargs are translatable, override this function instead to generate the proper URL.

model

alias of djangocms_blog.models.Post

optimize(qs)

Apply select_related / prefetch_related to optimize the view queries :param qs: queryset to optimize :return: optimized queryset

class djangocms_blog.views.CategoryEntriesView(**kwargs)
get_context_data(**kwargs)

Get the context for this view.

get_queryset()

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 djangocms_blog.views.PostArchiveView(**kwargs)
get_context_data(**kwargs)

Get the context for this view.

get_queryset()

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 djangocms_blog.views.PostDetailView(**kwargs)
get_context_data(**kwargs)

Insert the single object into the context dict.

get_queryset()

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.

get_template_names()

Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return the following list:

  • the value of template_name on the view (if provided)
  • the contents of the template_name_field field on the object instance that the view is operating upon (if available)
  • <app_label>/<model_name><template_name_suffix>.html
class djangocms_blog.views.PostListView(**kwargs)
class djangocms_blog.views.TaggedListView(**kwargs)
get_context_data(**kwargs)

Get the context for this view.

get_queryset()

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.