eucrim.association package

Submodules

eucrim.association.apps module

class eucrim.association.apps.AssociationConfig(app_name, app_module)[source]

Bases: AppConfig

name = 'eucrim.association'

eucrim.association.models module

class eucrim.association.models.AssociationCountries[source]

Bases: Countries

only = ['AT', 'BE', 'BG', 'HR', 'CY', ('CZ', 'Czech Republic'), 'DK', 'EE', 'FI', 'FR', 'DE', 'GE', 'GR', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'MK', 'MN', 'MT', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'CH', 'TR', 'GB', ('EU', 'European Union')]
class eucrim.association.models.AssociationIndexPage(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of, page_ptr, description)[source]

Bases: HideShowInMenusField, Page

exception DoesNotExist

Bases: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: NotUpdated

ajax_template = None
content_panels = [<wagtail.models.panels.PanelPlaceholder object>, <FieldPanel 'description' with model=None>]
description

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_context(request, *args, **kwargs)[source]
index_entries

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

is_creatable = True
max_count = 1
page_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

page_ptr_id
parent_page_types = ['core.HomePage']
search_fields = [<SearchField: title>, <AutocompleteField: title>, <FilterField: title>, <FilterField: id>, <FilterField: live>, <FilterField: owner>, <FilterField: content_type>, <FilterField: path>, <FilterField: depth>, <FilterField: locked>, <FilterField: show_in_menus>, <FilterField: first_published_at>, <FilterField: last_published_at>, <FilterField: latest_revision_created_at>, <FilterField: locale>, <FilterField: translation_key>, <SearchField: description>]
show_in_menus = True
subpage_types = ['association.AssociationPage']
template = 'association/association_index_page.html'
class eucrim.association.models.AssociationPage(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of, page_ptr, title_native, abbr, website, country, note)[source]

Bases: HideShowInMenusField, Page

exception DoesNotExist

Bases: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: NotUpdated

abbr

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

ajax_template = None
contact_set
content_panels = [<wagtail.models.panels.PanelPlaceholder object>, <FieldPanel 'title_native' with model=None>, <FieldPanel 'abbr' with model=None>, <FieldPanel 'website' with model=None>, <FieldPanel 'country' with model=None>, <FieldPanel 'note' with model=None>, <InlinePanel with model=None>]
country

A descriptor for country fields on a model instance. Returns a Country when accessed so you can do things like:

>>> from people import Person
>>> person = Person.object.get(name='Chris')

>>> person.country.name
'New Zealand'

>>> person.country.flag
'/static/flags/nz.gif'
get_admin_display_title()[source]

Return the title for this page as it should appear in the admin backend; override this if you wish to display extra contextual information about the page, such as language. By default, returns draft_title.

get_country_display(*, field=<django_countries.fields.CountryField: country>)
index_entries

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

is_creatable = True
note

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

page_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

page_ptr_id
parent_page_types = ['association.AssociationIndexPage']
search_fields = [<SearchField: title>, <AutocompleteField: title>, <FilterField: title>, <FilterField: id>, <FilterField: live>, <FilterField: owner>, <FilterField: content_type>, <FilterField: path>, <FilterField: depth>, <FilterField: locked>, <FilterField: show_in_menus>, <FilterField: first_published_at>, <FilterField: last_published_at>, <FilterField: latest_revision_created_at>, <FilterField: locale>, <FilterField: translation_key>, <SearchField: title_native>, <SearchField: note>]
show_in_menus = False
subpage_types = []
template = 'association/association_page.html'
title_native

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

website

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class eucrim.association.models.AssociationPageContactSets(id, sort_order, function, name, is_contact_point, position, address, email, tel, page)[source]

Bases: Orderable, ContactSet

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: ObjectNotUpdated, DatabaseError

address

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

email

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

function

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

index_entries

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

is_contact_point

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
page

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

page_id
position

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

sort_order

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tel

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class eucrim.association.models.ContactSet(*args, **kwargs)[source]

Bases: Indexed, Model

class Meta[source]

Bases: object

abstract = False
address

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

email

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

function

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

is_contact_point

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

panels = [<FieldPanel 'function' with model=None>, <FieldPanel 'name' with model=None>, <FieldPanel 'position' with model=None>, <FieldPanel 'address' with model=None>, <FieldRowPanel with model=None>, <FieldPanel 'is_contact_point' with model=None>]
position

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

search_fields = [<SearchField: name>]
tel

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Module contents