djangocms_blog.models

Models

class djangocms_blog.models.Post(*args, **kwargs)

Blog post

exception DoesNotExist
exception MultipleObjectsReturned
get_author()

Return the author (user) objects

get_keywords()

Returns the list of keywords (as python list) :return: list

get_tags()

Returns the list of object tags as comma separated list

is_published

Checks wether the blog post is really published by checking publishing dates too

save(*args, **kwargs)

Handle some auto configuration during save

save_translation(translation, *args, **kwargs)

Handle some auto configuration during save

should_knock(signal_type, created=False)

Returns whether to emit knocks according to the post state

class djangocms_blog.models.BlogCategory(*args, **kwargs)

Blog category

exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class djangocms_blog.models.BlogMetaMixin
get_full_url()

Return the url with protocol and domain url

get_meta_attribute(param)

Retrieves django-meta attributes from apphook config instance :param param: django-meta attribute passed as key

Managers

class djangocms_blog.managers.GenericDateQuerySet(*args, **kwargs)
class djangocms_blog.managers.GenericDateTaggedManager
get_months(queryset=None, current_site=True)

Get months with aggregate count (how much posts is in the month). Results are ordered by date.

get_queryset(*args, **kwargs)

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

queryset_class

alias of GenericDateQuerySet