GeographicArea¶
-
class
database.models.
GeographicArea
(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModel
A geographic area that can be part of another area
-
name
¶ The name of this GeographicArea
-
part_of
¶ models.ForeignKey – The parent area of this GeographicArea (e.g. Montreal has Quebec as parent area)
-
child_areas
¶ model.ManyToOneRel – References to the child areas of this GeographicArea
-
birth_location_of
¶ models.ManyToOneRel – References to Persons that were born in this GeographicArea
-
death_location_of
¶ models.ManyToOneRel – References to Persons that died in this GeographicArea
-
contributions
¶ models.ManyToOneRel – References to the Contributions made in this GeographicArea
-
institutions
¶ models.ManyToOneRel – References to the Institutions located in this GeographicArea
See also
database.models.CustomBaseModel
,database.models.Person
,database.models.Contribution
,database.models.Institution
Attributes Summary
authority_control_key
A wrapper for a deferred-loading field. authority_control_url
A wrapper for a deferred-loading field. birth_location_of
Accessor to the related objects manager on the reverse side of a many-to-one relation. child_areas
Accessor to the related objects manager on the reverse side of a many-to-one relation. contributions
Accessor to the related objects manager on the reverse side of a many-to-one relation. death_location_of
Accessor to the related objects manager on the reverse side of a many-to-one relation. id
A wrapper for a deferred-loading field. institutions
Accessor to the related objects manager on the reverse side of a many-to-one relation. musical_works
Get the MusicalWorks that have contributions made in this area. name
A wrapper for a deferred-loading field. objects
part_of
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. part_of_id
A wrapper for a deferred-loading field. parts
Get the Parts that have contributions made in this area. sections
Get the Sections that have contributions made in this area. Methods Summary
get_next_by_date_created
(*[, field, is_next])get_next_by_date_updated
(*[, field, is_next])get_previous_by_date_created
(*[, field, is_next])get_previous_by_date_updated
(*[, field, is_next])Attributes Documentation
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.
-
birth_location_of
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
child_areas
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
contributions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
death_location_of
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
institutions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
musical_works
¶ Get the MusicalWorks that have contributions made in this area.
-
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>¶
-
part_of
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 aForwardManyToOneDescriptor
instance.
-
part_of_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
parts
¶ Get the Parts that have contributions made in this area.
-
sections
¶ Get the Sections that have contributions made in this area.
Methods Documentation
-
get_next_by_date_created
(*, field=<django.db.models.fields.DateTimeField: date_created>, is_next=True, **kwargs)¶
-
get_next_by_date_updated
(*, field=<django.db.models.fields.DateTimeField: date_updated>, is_next=True, **kwargs)¶
-
get_previous_by_date_created
(*, field=<django.db.models.fields.DateTimeField: date_created>, is_next=False, **kwargs)¶
-
get_previous_by_date_updated
(*, field=<django.db.models.fields.DateTimeField: date_updated>, is_next=False, **kwargs)¶
-