djangocms_blog.models

Models

Managers

class TaggedFilterItem[source]
tagged(other_model=None, queryset=None)[source]

Restituisce una queryset di elementi del model taggati, o con gli stessi tag di un model o un queryset

_taglist(other_model=None, queryset=None)[source]

Restituisce una lista di id di tag comuni al model corrente e al model o queryset passati come argomento

tag_list(other_model=None, queryset=None)[source]

Restituisce un queryset di tag comuni al model corrente e al model o queryset passati come argomento

tag_list_slug(other_model=None, queryset=None)[source]
tag_cloud(other_model=None, queryset=None, published=True, on_site=False)[source]
class SiteQuerySet(model=None, query=None, using=None, hints=None)[source]
on_site(site=None)[source]
filter_by_language(language, current_site=True)[source]
class AdminSiteQuerySet(model=None, query=None, using=None, hints=None)[source]
current_content(**kwargs)[source]

If a versioning package is installed, this returns the currently valid content that matches the filter given in kwargs. Used to find content to be copied, e.g.. Without versioning every page is current.

latest_content(**kwargs)[source]

If a versioning package is installed, returns the latest version that matches the filter given in kwargs including discared or unpublished page content. Without versioning every page content is the latest.

class GenericDateTaggedManager(*args, **kwargs)[source]
queryset_class

alias of SiteQuerySet

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

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

filter_by_language(language, current_site=True)[source]

Convenience method to access the queryset’s filter_by_language method.

on_site(site=None)[source]

Convenience method to access the queryset’s on_site method.

get_months(queryset=None, current_site=True)[source]

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

class AdminDateTaggedManager(*args, **kwargs)[source]
queryset_class

alias of AdminSiteQuerySet

current_content(**kwargs)[source]

Syntactic sugar: admin_manager.current_content()

latest_content(**kwargs)[source]

Syntactic sugar: admin_manager.latest_content()