eucrim.core.models package
Submodules
eucrim.core.models.categories module
- class eucrim.core.models.categories.CategoryAreasCrime(id, title, description, slug, print_order)[source]
Bases:
AbstractNewsCategory- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
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.
- newspage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>
- print_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- procedurepage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- slug
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- snippet_viewset = <eucrim.core.wagtail_hooks.CategoryAreasCrimeViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.categories.CategoryCooperation(id, title, description, slug, print_order)[source]
Bases:
AbstractNewsCategory- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
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.
- newspage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>
- print_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- procedurepage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- slug
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- snippet_viewset = <eucrim.core.wagtail_hooks.CategoryCooperationViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.categories.CategoryFoundation(id, title, description, slug, print_order)[source]
Bases:
AbstractNewsCategory- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
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.
- newspage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>
- print_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- procedurepage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- slug
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- snippet_viewset = <eucrim.core.wagtail_hooks.CategoryFoundationViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.categories.CategoryInstitution(id, title, description, slug, print_order)[source]
Bases:
AbstractNewsCategory- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
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.
- newspage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>
- print_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- procedurepage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- slug
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- snippet_viewset = <eucrim.core.wagtail_hooks.CategoryInstitutionViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.categories.CategoryProceduralCriminalLaw(id, title, description, slug, print_order)[source]
Bases:
AbstractNewsCategory- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
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.
- newspage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>
- print_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- procedurepage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- slug
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- snippet_viewset = <eucrim.core.wagtail_hooks.CategoryProceduralCriminalLawViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.categories.CategoryRegion(id, title, description, slug, print_order)[source]
Bases:
AbstractNewsCategory- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
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.
- newspage_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>
- print_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- slug
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- snippet_viewset = <eucrim.core.wagtail_hooks.CategoryRegionViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
eucrim.core.models.pages module
- class eucrim.core.models.pages.Abbreviation(*args, **kwargs)[source]
Bases:
Indexed,Model- abbreviation
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- panels = [<MultiFieldPanel with model=None>]
- term
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.pages.AbbreviationIndexPage(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, body)[source]
Bases:
Page- exception DoesNotExist
Bases:
DoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
NotUpdated
- abbreviations
- ajax_template = None
- body
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- content_panels = [<wagtail.models.panels.PanelPlaceholder object>, <FieldPanel 'body' with model=None>, <InlinePanel with model=None>]
- 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.commentsis a ReverseGenericManyToOneDescriptor instance.
- is_creatable = True
- 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.placeis aForwardOneToOneDescriptorinstance.
- page_ptr_id
- 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: body>]
- template = 'core/abbreviation_index_page.html'
- class eucrim.core.models.pages.AbbreviationPageRelatedLinks(id, term, abbreviation, page)[source]
Bases:
Abbreviation- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- abbreviation
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.
- 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.parentis aForwardManyToOneDescriptorinstance.
- page_id
- term
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.pages.HomePage(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, about, body, last_articles_quantity, last_editorials_quantity, last_news_quantity, last_featured_news_quantity, last_issues_quantity, last_events_quantity)[source]
Bases:
Page- exception DoesNotExist
Bases:
DoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
NotUpdated
- about
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
- body
A placeholder class that provides a way to set the attribute on the model.
- carousel_items
- content_panels = [<wagtail.models.panels.PanelPlaceholder object>, <FieldPanel 'about' with model=None>, <FieldPanel 'body' with model=None>]
- 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.commentsis a ReverseGenericManyToOneDescriptor instance.
- is_creatable = True
- last_articles_quantity
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_editorials_quantity
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_events_quantity
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_featured_news_quantity
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_issues_quantity
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_news_quantity
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- 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.placeis aForwardOneToOneDescriptorinstance.
- page_ptr_id
- parent_page_types = ['wagtailcore.Page']
- 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: about>]
- settings_panels = [<wagtail.models.panels.PanelPlaceholder object>, <wagtail.models.panels.CommentPanelPlaceholder object>, <FieldPanel 'last_articles_quantity' with model=None>, <FieldPanel 'last_editorials_quantity' with model=None>, <FieldPanel 'last_news_quantity' with model=None>, <FieldPanel 'last_featured_news_quantity' with model=None>, <FieldPanel 'last_issues_quantity' with model=None>, <FieldPanel 'last_events_quantity' with model=None>]
- subpage_types = ['StandardPage', 'article.ArticleIndexPage', 'association.AssociationIndexPage', 'issue.IssueIndexPage', 'news.NewsIndexPage', 'event.EventIndexPage', 'treaty.TreatyIndexPage', 'profile.ProfileIndexPage', 'procedure.ProcedureIndexPage']
- template = 'core/home_page.html'
- class eucrim.core.models.pages.HomePageCarouselItem(id, sort_order, link_external, link_page, link_document, image, embed_url, caption, page)[source]
Bases:
Orderable,CarouselItem- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- caption
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- embed_url
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.
- image
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.parentis aForwardManyToOneDescriptorinstance.
- image_id
- link_document
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.parentis aForwardManyToOneDescriptorinstance.
- link_document_id
- link_external
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- link_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.parentis aForwardManyToOneDescriptorinstance.
- link_page_id
- 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.parentis aForwardManyToOneDescriptorinstance.
- page_id
- sort_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.pages.StandardPage(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, intro, body)[source]
Bases:
Page- exception DoesNotExist
Bases:
DoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
NotUpdated
- ajax_template = None
- body
A placeholder class that provides a way to set the attribute on the model.
- content_panels = [<wagtail.models.panels.PanelPlaceholder object>, <FieldPanel 'intro' with model=None>, <FieldPanel 'body' with model=None>]
- 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.commentsis a ReverseGenericManyToOneDescriptor instance.
- intro
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_creatable = True
- 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.placeis aForwardOneToOneDescriptorinstance.
- page_ptr_id
- promote_panels = [<wagtail.models.panels.PanelPlaceholder object>, <wagtail.models.panels.PanelPlaceholder object>]
- 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: body>]
- template = 'core/standard_page.html'
eucrim.core.models.snippets module
- class eucrim.core.models.snippets.Banner(*args, **kwargs)[source]
Bases:
ModelBanner snippet for sitewide messages or promotions.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- clean()[source]
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active
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>
- panels = [<FieldPanel 'title' with model=None>, <FieldPanel 'is_active' with model=None>]
- snippet_viewset = <wagtail.snippets.views.snippets.SnippetViewSet object>
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Bases:
ClusterableModelBases:
ObjectDoesNotExist
Bases:
MultipleObjectsReturned
Bases:
ObjectNotUpdated,DatabaseError
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Bases:
LinkFields,OrderableBases:
ObjectDoesNotExist
Bases:
MultipleObjectsReturned
Bases:
ObjectNotUpdated,DatabaseError
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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.parentis aForwardManyToOneDescriptorinstance.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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.parentis aForwardManyToOneDescriptorinstance.
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.parentis aForwardManyToOneDescriptorinstance.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Bases:
ClusterableModel,OrderableBases:
ObjectDoesNotExist
Bases:
MultipleObjectsReturned
Bases:
ObjectNotUpdated,DatabaseError
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.parentis aForwardManyToOneDescriptorinstance.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eucrim.core.models.snippets.LegalLink(id, sort_order, link_external, link_page, link_document, legal_link, link_text)[source]
Bases:
LinkFields,Orderable,Model- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- legal_link
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.parentis aForwardManyToOneDescriptorinstance.
- legal_link_id
- link_document
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.parentis aForwardManyToOneDescriptorinstance.
- link_document_id
- link_external
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- link_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.parentis aForwardManyToOneDescriptorinstance.
- link_page_id
- link_text
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>
- panels = [<FieldPanel 'link_text' with model=None>, <MultiFieldPanel with model=None>]
- sort_order
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Bases:
Orderable,ModelBases:
ObjectDoesNotExist
Bases:
MultipleObjectsReturned
Bases:
ObjectNotUpdated,DatabaseError
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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.parentis aForwardManyToOneDescriptorinstance.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.