cms.apps.links package¶
Submodules¶
cms.apps.links.admin module¶
-
class
cms.apps.links.admin.LinksCategoryAdmin(model, admin_site)¶ Bases:
cms.core.admin.DisplayableAdmin,cms.core.admin.OrderableAdmin,cms.core.admin.OrderableManyToManyAdmin,cms.apps.menus.admin.MenuableAdminAdmin class for LinksCategory.
-
fieldsets_append= {<django.utils.functional.__proxy__ object at 0x5ad5e90>: ('items',)}¶
-
fieldsets_exclude= {<django.utils.functional.__proxy__ object at 0x5ad5d90>: ('keywords',)}¶
-
list_display= ('order', 'get_published_date', 'get_title')¶
-
list_editable= ('order',)¶
-
list_exclude= ('sitemapped',)¶
-
media¶
-
sortable_field_name= 'order'¶
-
-
class
cms.apps.links.admin.LinksCategoryInline(parent_model, admin_site)¶ Bases:
cms.contrib.admin.admin.CMSTabularInline-
exclude= ('order',)¶
-
extra_on_add= 1¶
-
media¶
-
model¶ alias of
LinksCategory_items
-
verbose_name= <django.utils.functional.__proxy__ object at 0x5ad5fd0>¶
-
verbose_name_plural= <django.utils.functional.__proxy__ object at 0x59380d0>¶
-
-
class
cms.apps.links.admin.LinksItemAdmin(model, admin_site)¶ Bases:
cms.core.admin.DisplayableAdminAdmin class for LinksItem.
-
fieldsets_append= {<django.utils.functional.__proxy__ object at 0x5938450>: ('slug', 'target', 'rel')}¶
-
fieldsets_exclude= {<django.utils.functional.__proxy__ object at 0x59383d0>: ('slug',), <django.utils.functional.__proxy__ object at 0x5938350>: ('keywords',), <django.utils.functional.__proxy__ object at 0x5938210>: ('sitemapped',)}¶
-
get_categories(obj)¶
-
inlines= [<class 'cms.apps.links.admin.LinksCategoryInline'>]¶
-
list_display= ('get_published_date', 'get_title', 'get_categories')¶
-
list_exclude= ('sitemapped',)¶
-
list_filter= ('published_date', 'status', 'login_required', 'keywords__keyword', 'linkscategory')¶
-
media¶
-
prepopulated_fields= {}¶
-
cms.apps.links.autofixtures module¶
-
class
cms.apps.links.autofixtures.LinksCategoryFixture(*args, **kwargs)¶ Bases:
cms.core.dev.autofixtures.base.CMSAutoFixture-
COUNT_DEFAULT= 2¶
-
field_values= {'imageteaser': <autofixture.generators.NoneGenerator object at 0x8331350>, 'title': <autofixture.generators.LoremSentenceGenerator object at 0x8331c90>, 'image': <cms.core.dev.autofixtures.generators.ImageGenerator object at 0x8331290>, 'order': <autofixture.generators.PositiveSmallIntegerGenerator object at 0x8331d90>, 'imageteaserdescription': <autofixture.generators.NoneGenerator object at 0x8331cd0>, 'expired_date': <autofixture.generators.NoneGenerator object at 0x8560590>, 'published_date': <cms.core.dev.autofixtures.generators.DateTimeMaxNowGenerator object at 0x8331d50>, 'slug': <autofixture.generators.NoneGenerator object at 0x8331ad0>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>}¶
-
follow_m2m= {'ALL': (1, 10)}¶
-
-
class
cms.apps.links.autofixtures.LinksItemFixture(*args, **kwargs)¶ Bases:
cms.core.dev.autofixtures.base.CMSAutoFixture-
COUNT_DEFAULT= 10¶
-
field_values= {'imageteaser': <autofixture.generators.NoneGenerator object at 0x8331350>, 'title': <autofixture.generators.LoremSentenceGenerator object at 0x8331c90>, 'image': <cms.core.dev.autofixtures.generators.ImageGenerator object at 0x8331290>, 'order': <autofixture.generators.PositiveSmallIntegerGenerator object at 0x8331d90>, 'imageteaserdescription': <autofixture.generators.NoneGenerator object at 0x8331cd0>, 'expired_date': <autofixture.generators.NoneGenerator object at 0x8560590>, 'published_date': <cms.core.dev.autofixtures.generators.DateTimeMaxNowGenerator object at 0x8331d50>, 'slug': <autofixture.generators.URLGenerator object at 0x9bec890>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>}¶
-
cms.apps.links.cms_initialize module¶
-
class
cms.apps.links.cms_initialize.CMSInitialize¶ Bases:
cms.core.models.CMSInitializeBase-
models= (<class 'cms.apps.links.models.LinksCategory'>, <class 'cms.apps.links.models.LinksItem'>)¶
-
cms.apps.links.cms_plugin module¶
cms.apps.links.models module¶
-
class
cms.apps.links.models.LinksCategory(*args, **kwargs)¶ Bases:
cms.core.models.Orderable,cms.core.models.Displayable,cms.core.models.OwnableA simple Links-Model.
-
exception
LinksCategory.DoesNotExist¶
-
class
LinksCategory.Menus¶
-
exception
LinksCategory.MultipleObjectsReturned¶
-
LinksCategory.clean_fields(exclude=None)¶
-
LinksCategory.created_by¶
-
LinksCategory.description¶ A descriptor used for the original translated field.
-
LinksCategory.get_absolute_url()¶
-
LinksCategory.get_keywordsfield_name()¶
-
LinksCategory.get_mark_display(*moreargs, **morekwargs)¶
-
LinksCategory.get_next_by_created_date(*moreargs, **morekwargs)¶
-
LinksCategory.get_next_by_modified_date(*moreargs, **morekwargs)¶
-
LinksCategory.get_next_by_published_date(*moreargs, **morekwargs)¶
-
LinksCategory.get_previous_by_created_date(*moreargs, **morekwargs)¶
-
LinksCategory.get_previous_by_modified_date(*moreargs, **morekwargs)¶
-
LinksCategory.get_previous_by_published_date(*moreargs, **morekwargs)¶
-
LinksCategory.get_status_display(*moreargs, **morekwargs)¶
-
LinksCategory.items¶
-
LinksCategory.keywords¶ This class provides the functionality that makes the related-object managers available as attributes on a model class, for fields that have multiple “remote” values and have a GenericRelation defined in their model (rather than having another model pointed at them). In the example “article.publications”, the publications attribute is a ReverseGenericRelatedObjectsDescriptor instance.
-
LinksCategory.keywords_string¶ A descriptor used for the original translated field.
-
LinksCategory.modified_by¶
-
LinksCategory.objects= <cms.core.translations.translator.NewMultilingualManager object at 0x429dd50>¶
-
LinksCategory.sites¶
-
LinksCategory.slug¶ A descriptor used for the original translated field.
-
LinksCategory.title¶ A descriptor used for the original translated field.
-
exception
-
class
cms.apps.links.models.LinksItem(*args, **kwargs)¶ Bases:
cms.core.models.Displayable,cms.core.models.OwnableA simple Links-Model.
-
exception
LinksItem.DoesNotExist¶
-
class
LinksItem.Menus¶
-
exception
LinksItem.MultipleObjectsReturned¶
-
LinksItem.clean_fields(exclude=None)¶
-
LinksItem.created_by¶
-
LinksItem.description¶ A descriptor used for the original translated field.
-
LinksItem.get_absolute_url()¶
-
LinksItem.get_keywordsfield_name()¶
-
LinksItem.get_mark_display(*moreargs, **morekwargs)¶
-
LinksItem.get_next_by_created_date(*moreargs, **morekwargs)¶
-
LinksItem.get_next_by_modified_date(*moreargs, **morekwargs)¶
-
LinksItem.get_next_by_published_date(*moreargs, **morekwargs)¶
-
LinksItem.get_previous_by_created_date(*moreargs, **morekwargs)¶
-
LinksItem.get_previous_by_modified_date(*moreargs, **morekwargs)¶
-
LinksItem.get_previous_by_published_date(*moreargs, **morekwargs)¶
-
LinksItem.get_status_display(*moreargs, **morekwargs)¶
-
LinksItem.get_target_display(*moreargs, **morekwargs)¶
-
LinksItem.keywords¶ This class provides the functionality that makes the related-object managers available as attributes on a model class, for fields that have multiple “remote” values and have a GenericRelation defined in their model (rather than having another model pointed at them). In the example “article.publications”, the publications attribute is a ReverseGenericRelatedObjectsDescriptor instance.
-
LinksItem.keywords_string¶ A descriptor used for the original translated field.
-
LinksItem.linkscategory_set¶
-
LinksItem.modified_by¶
-
LinksItem.objects= <cms.core.translations.translator.NewMultilingualManager object at 0x4297110>¶
-
LinksItem.sites¶
-
LinksItem.slug¶ A descriptor used for the original translated field.
-
LinksItem.title¶ A descriptor used for the original translated field.
-
exception
cms.apps.links.urls module¶
cms.apps.links.views module¶
-
class
cms.apps.links.views.LinkCategoryDetailView(**kwargs)¶ Bases:
cms.apps.links.views.LinksBaseView,cms.core.views.GenericTemplateTooltipView-
get(request, category)¶
-
template_name= 'links/category_detail.html'¶
-
-
class
cms.apps.links.views.LinkCategoryListView(**kwargs)¶ Bases:
cms.apps.links.views.LinksBaseView-
get(request)¶
-
template_name= 'links/categories_list.html'¶
-
-
class
cms.apps.links.views.LinksBaseView(**kwargs)¶ Bases:
cms.core.views.GenericTemplateView-
get_categories()¶
-
get_category(category)¶
-
get_data()¶
-