cms.apps.contact package¶
Submodules¶
cms.apps.contact.admin module¶
-
class
cms.apps.contact.admin.
ContactCategoryAdmin
(model, admin_site)¶ Bases:
cms.core.admin.ContentAdmin
Admin class for ContactCategory.
-
fields_with_sibling
= ()¶
-
fieldsets_append
= {<django.utils.functional.__proxy__ object at 0x5abe410>: ('email',)}¶
-
fieldsets_exclude
= {<django.utils.functional.__proxy__ object at 0x5abe390>: ('description_auto', 'license', 'schema'), <django.utils.functional.__proxy__ object at 0x5abe350>: ('image', 'imagedescription', 'imageteaser', 'imageteaserdescription', 'teaser', 'teaser_auto'), <django.utils.functional.__proxy__ object at 0x5abe310>: ('mark',), <django.utils.functional.__proxy__ object at 0x5abe3d0>: ('keywords',)}¶
-
list_display
= ('get_published_date', 'get_title')¶
-
list_display_links
= ()¶
-
list_filter
= ('status',)¶
-
media
¶
-
-
class
cms.apps.contact.admin.
ContactItemAdmin
(model, admin_site)¶ Bases:
cms.core.admin.DisplayableAdmin
,cms.contrib.admin.admin.CleanupExpiredAdmin
Admin class for ContactItem.
-
action_mark_read
(dummy, request, queryset)¶
-
action_mark_unread
(dummy, request, queryset)¶
-
autocomplete_lookup_fields
= {'m2m': ['sites']}¶
-
change_view
(request, object_id, form_url='', extra_context=None)¶
-
fieldsets_append
= {<django.utils.functional.__proxy__ object at 0x5abe5d0>: ('description',)}¶
-
fieldsets_exclude
= {<django.utils.functional.__proxy__ object at 0x5abe590>: ('description', 'description_auto', 'author'), <django.utils.functional.__proxy__ object at 0x5abe550>: ('keywords',), <django.utils.functional.__proxy__ object at 0x5abe510>: ('mark', 'expired_date'), <django.utils.functional.__proxy__ object at 0x5abe490>: ('login_required', 'sitemapped')}¶
-
get_actions
(request)¶
-
get_title
(obj)¶
-
list_display
= ('get_published_date', 'get_title')¶
-
list_display_meta
= ('status', 'mood')¶
-
list_exclude
= ('get_changelist_actions',)¶
-
list_filter
= ('published_date', 'status', 'category', 'mood')¶
-
media
¶
-
raw_id_fields
= ('sites',)¶
-
-
class
cms.apps.contact.admin.
ContactItemAdminNotification
¶ Bases:
cms.contrib.admin.admin.AdminNotification
-
description
= <django.utils.functional.__proxy__ object at 0x5abe790>¶
-
get_objects
(request)¶
-
get_title
(request, count)¶
-
get_url
(request)¶
-
icon_class
= 'icon-reademail'¶
-
model
¶ alias of
ContactItem
-
perms
= ('change_contactitem_all',)¶
-
-
class
cms.apps.contact.admin.
ContactItemModelstatsDashboardModule
(request)¶ Bases:
cms.contrib.modelstats.modules.ModelstatsDashboardModule
-
date_field
= 'published_date'¶
-
get_actions
(request)¶
-
get_objects
(request)¶
-
get_objects_for_stats
(request)¶
-
model
¶ alias of
ContactItem
-
only
= ('description', 'email', 'mood', 'name', 'pk', 'published_date', 'title')¶
-
perms
= ('change_contactitem_all',)¶
-
template_recent
= 'grappelli/dashboard/modules/modelstats_contact.html'¶
-
cms.apps.contact.autofixtures module¶
-
class
cms.apps.contact.autofixtures.
ContactCategoryFixture
(*args, **kwargs)¶ Bases:
cms.core.dev.autofixtures.base.CMSAutoFixture
-
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>, 'email': u'hello@inmeta.net', '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>}¶
-
-
class
cms.apps.contact.autofixtures.
ContactItemFixture
(*args, **kwargs)¶ Bases:
cms.core.dev.autofixtures.base.CMSAutoFixture
-
COUNT_DEFAULT
= 50¶
-
field_values
= {'image': <cms.core.dev.autofixtures.generators.ImageGenerator object at 0x8331290>, 'imageteaserdescription': <autofixture.generators.NoneGenerator object at 0x8331cd0>, 'referer': <autofixture.generators.URLGenerator object at 0x9136950>, 'expired_date': <autofixture.generators.NoneGenerator object at 0x8560590>, 'ip_address': <autofixture.generators.IPAddressGenerator object at 0x9136890>, 'slug': <autofixture.generators.URLGenerator object at 0x9136990>, 'pretitle': <autofixture.generators.LoremSentenceGenerator object at 0x8331d10>, 'imageteaser': <autofixture.generators.NoneGenerator object at 0x8331350>, 'mood': <autofixture.generators.ChoicesGenerator object at 0x9136910>, 'title': <autofixture.generators.LoremSentenceGenerator object at 0x8331c90>, 'name': <cms.core.dev.autofixtures.generators.FullNameGenerator object at 0x91368d0>, 'content': <autofixture.generators.LoremGenerator object at 0x9136850>, 'published_date': <cms.core.dev.autofixtures.generators.DateTimeMaxNowGenerator object at 0x8331d50>, 'order': <autofixture.generators.PositiveSmallIntegerGenerator object at 0x8331d90>}¶
-
cms.apps.contact.cms_defaults module¶
cms.apps.contact.cms_initialize module¶
-
class
cms.apps.contact.cms_initialize.
CMSInitialize
¶ Bases:
cms.core.models.CMSInitializeBase
-
models
= (<class 'cms.apps.contact.models.ContactCategory'>, <class 'cms.apps.contact.models.ContactItem'>)¶
-
cms.apps.contact.cms_plugin module¶
cms.apps.contact.fields module¶
-
class
cms.apps.contact.fields.
ContactSubjectField
(queryset, empty_label=u'---------', cache_choices=False, required=True, widget=None, label=None, initial=None, help_text=u'', to_field_name=None, limit_choices_to=None, *args, **kwargs)¶ Bases:
django.forms.models.ModelChoiceField
Do not query entry exists. Subject is free
-
to_python
(value)¶
-
cms.apps.contact.forms module¶
-
class
cms.apps.contact.forms.
ContactForm
(request, *args, **kwargs)¶ Bases:
cms.core.forms.CMSSecurityForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7978490>), ('email', <django.forms.fields.EmailField object at 0x7978590>), ('url', <django.forms.fields.CharField object at 0x7978710>), ('subject', <cms.apps.contact.fields.ContactSubjectField object at 0x7978890>), ('message', <django.forms.fields.CharField object at 0x7978b90>), ('mood', <django.forms.fields.IntegerField object at 0x7978cd0>), ('referer', <django.forms.fields.URLField object at 0x7978d50>)])¶
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object at 0x7978490>), ('email', <django.forms.fields.EmailField object at 0x7978590>), ('url', <django.forms.fields.CharField object at 0x7978710>), ('subject', <cms.apps.contact.fields.ContactSubjectField object at 0x7978890>), ('message', <django.forms.fields.CharField object at 0x7978b90>), ('mood', <django.forms.fields.IntegerField object at 0x7978cd0>), ('referer', <django.forms.fields.URLField object at 0x7978d50>)])¶
-
media
¶
-
cms.apps.contact.messages module¶
cms.apps.contact.models module¶
-
class
cms.apps.contact.models.
ContactCategory
(id, keywords_string, created_date, modified_date, created_by_id, modified_by_id, description, description_auto, login_required, title, slug, status, published_date, expired_date, sitemapped, mark, content, teaser, teaser_auto, image, imagedescription, imageteaser, imageteaserdescription, license_id, schema, author_id, email)¶ Bases:
cms.core.models.Content
,cms.core.models.Ownable
-
exception
ContactCategory.
DoesNotExist
¶
-
exception
ContactCategory.
MultipleObjectsReturned
¶
-
class
ContactCategory.
Translation
¶ -
fields
= ('-teaser', '-image', '-imagedescription', '-imageteaser', '-imageteaserdescription')¶
-
-
ContactCategory.
clean_fields
(exclude=None)¶
-
ContactCategory.
contact_contactitem
¶
-
ContactCategory.
content
¶ A descriptor used for the original translated field.
-
ContactCategory.
created_by
¶
-
ContactCategory.
description
¶ A descriptor used for the original translated field.
-
ContactCategory.
get_absolute_url
()¶
-
ContactCategory.
get_keywordsfield_name
()¶
-
ContactCategory.
get_mark_display
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_next_by_created_date
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_next_by_modified_date
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_next_by_published_date
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_previous_by_created_date
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_previous_by_modified_date
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_previous_by_published_date
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_schema_display
(*moreargs, **morekwargs)¶
-
ContactCategory.
get_status_display
(*moreargs, **morekwargs)¶
-
ContactCategory.
image
¶ A placeholder class that provides a way to set the attribute on the model.
A placeholder class that provides a way to set the attribute on the model.
-
ContactCategory.
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.
-
ContactCategory.
keywords_string
¶ A descriptor used for the original translated field.
-
ContactCategory.
license
¶
-
ContactCategory.
modified_by
¶
-
ContactCategory.
objects
= <cms.core.translations.translator.NewMultilingualManager object at 0x426e890>¶
-
ContactCategory.
sites
¶
-
ContactCategory.
slug
¶ A descriptor used for the original translated field.
-
ContactCategory.
title
¶ A descriptor used for the original translated field.
-
exception
-
class
cms.apps.contact.models.
ContactItem
(id, keywords_string, created_date, modified_date, created_by_id, modified_by_id, description, description_auto, login_required, title, slug, status, published_date, expired_date, sitemapped, mark, content, teaser, teaser_auto, image, imagedescription, imageteaser, imageteaserdescription, license_id, schema, browser, category_id, email, ip_address, mood, name, referer)¶ Bases:
cms.core.models.Content
-
exception
ContactItem.
DoesNotExist
¶
-
ContactItem.
MOOD_CHOICES
= ((1, <django.utils.functional.__proxy__ object at 0x426edd0>), (2, <django.utils.functional.__proxy__ object at 0x426ee10>), (3, <django.utils.functional.__proxy__ object at 0x426ee50>))¶
-
exception
ContactItem.
MultipleObjectsReturned
¶
-
ContactItem.
STATUS_CHOICES
= ((1, <django.utils.functional.__proxy__ object at 0x426ed50>), (2, <django.utils.functional.__proxy__ object at 0x426ed90>))¶
-
ContactItem.
STATUS_DRAFT
= 2¶
-
ContactItem.
STATUS_PUBLISHED
= 1¶
-
class
ContactItem.
Translation
¶ -
fields
= ('-title', '-slug', '-description', '-content', '-teaser', '-image', '-imagedescription', '-imageteaser', '-imageteaserdescription')¶
-
-
ContactItem.
category
¶
-
ContactItem.
clean_fields
(exclude=None)¶
-
ContactItem.
cleanup_expired
= <cms.core.translations.translator.NewMultilingualManager object at 0x42759d0>¶
-
ContactItem.
created_by
¶
-
ContactItem.
get_keywordsfield_name
()¶
-
ContactItem.
get_mark_display
(*moreargs, **morekwargs)¶
-
ContactItem.
get_mood_boolean_icon
¶
-
ContactItem.
get_mood_display
(*moreargs, **morekwargs)¶
-
ContactItem.
get_next_by_created_date
(*moreargs, **morekwargs)¶
-
ContactItem.
get_next_by_modified_date
(*moreargs, **morekwargs)¶
-
ContactItem.
get_next_by_published_date
(*moreargs, **morekwargs)¶
-
ContactItem.
get_previous_by_created_date
(*moreargs, **morekwargs)¶
-
ContactItem.
get_previous_by_modified_date
(*moreargs, **morekwargs)¶
-
ContactItem.
get_previous_by_published_date
(*moreargs, **morekwargs)¶
-
ContactItem.
get_schema_display
(*moreargs, **morekwargs)¶
-
ContactItem.
get_status_display
(*moreargs, **morekwargs)¶
-
ContactItem.
image
¶ A placeholder class that provides a way to set the attribute on the model.
A placeholder class that provides a way to set the attribute on the model.
-
ContactItem.
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.
-
ContactItem.
keywords_string
¶ A descriptor used for the original translated field.
-
ContactItem.
license
¶
-
ContactItem.
modified_by
¶
-
ContactItem.
objects
= <cms.core.translations.translator.NewMultilingualManager object at 0x4277e50>¶
-
ContactItem.
sites
¶
-
exception
cms.apps.contact.urls module¶
cms.apps.contact.views module¶
-
class
cms.apps.contact.views.
ContactFormBaseView
(**kwargs)¶ Bases:
cms.core.views.GenericCSRFProtectedTemplateView
-
get
(request, subject=None)¶
-
get_data
(request, subject)¶
-
post
(request, subject=None)¶
-
save
(request)¶
-
template_name
= 'contact/base.html'¶
-
-
class
cms.apps.contact.views.
ContactFormView
(**kwargs)¶ Bases:
cms.apps.contact.views.ContactFormBaseView
-
post
(request, subject=None)¶
-
-
class
cms.apps.contact.views.
ContactThanksView
(**kwargs)¶ Bases:
cms.apps.contact.views.ContactFormBaseView
-
get
(request, subject=None)¶
-
template_name
= 'contact/thanks.html'¶
-
-
class
cms.apps.contact.views.
ContactVCardBaseView
(**kwargs)¶ Bases:
cms.core.views.GenericView
-
get_vcard
(request)¶
-
-
class
cms.apps.contact.views.
ContactVCardDownloadView
(**kwargs)¶ Bases:
cms.apps.contact.views.ContactVCardBaseView
-
get
(request)¶
-
-
class
cms.apps.contact.views.
ContactVCardQRCodeView
(**kwargs)¶ Bases:
cms.apps.contact.views.ContactVCardBaseView
-
get
(request)¶
-