GeographicArea¶
-
class
database.models.GeographicArea(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModelA 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.InstitutionAttributes Summary
authority_control_keyA wrapper for a deferred-loading field. authority_control_urlA wrapper for a deferred-loading field. birth_location_ofAccessor to the related objects manager on the reverse side of a many-to-one relation. child_areasAccessor to the related objects manager on the reverse side of a many-to-one relation. contributionsAccessor to the related objects manager on the reverse side of a many-to-one relation. death_location_ofAccessor to the related objects manager on the reverse side of a many-to-one relation. idA wrapper for a deferred-loading field. institutionsAccessor to the related objects manager on the reverse side of a many-to-one relation. musical_worksGet the MusicalWorks that have contributions made in this area. nameA wrapper for a deferred-loading field. objectspart_ofAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. part_of_idA wrapper for a deferred-loading field. partsGet the Parts that have contributions made in this area. sectionsGet 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.childrenis aReverseManyToOneDescriptorinstance.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.childrenis aReverseManyToOneDescriptorinstance.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.childrenis aReverseManyToOneDescriptorinstance.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.childrenis aReverseManyToOneDescriptorinstance.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.childrenis aReverseManyToOneDescriptorinstance.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.parentis aForwardManyToOneDescriptorinstance.
-
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)¶
-