CollectionOfSources¶
-
class
database.models.
CollectionOfSources
(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModel
A reference to one or more Sources grouped together.
Examples: a book of masses, an album of songs.
-
title
¶ models.CharField – The title of this Collection of Sources.
-
editorial_notes
¶ models.TextField – Any editorial notes the user deems necessary.
-
date
¶ postgres.fields.DateRangeField – The date of this Collection of Sources.
-
person_publisher
¶ models.ForeignKey – Reference to the Person that published this Collection of Sources.
-
institution_publisher
¶ models.Institution – Reference to the Institution that published this Collection of Sources.
-
url
¶ models.URLField – A URL that identifies this Collection of Sources.
-
in_archive
¶ models.ManyToManyField – References to the Archives this Collection of Sources belongs to.
-
sources
¶ models.ManyToOneRel – References to the Sources that are part of this Collection of Sources.
See also
database.models.CustomBaseModel
,database.models.Sources
,database.models.Person
,database.models.Institution
,database.models.Archive
Attributes Summary
date
A wrapper for a deferred-loading field. editorial_notes
A wrapper for a deferred-loading field. id
A wrapper for a deferred-loading field. in_archive
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation. institution_publisher
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. institution_publisher_id
A wrapper for a deferred-loading field. objects
person_publisher
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. person_publisher_id
A wrapper for a deferred-loading field. sources
Accessor to the related objects manager on the reverse side of a many-to-one relation. title
A wrapper for a deferred-loading field. url
A wrapper for a deferred-loading field. 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
-
date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
editorial_notes
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.
-
in_archive
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.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
institution_publisher
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.
-
institution_publisher_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>¶
-
person_publisher
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.
-
person_publisher_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
sources
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.
-
title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
url
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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)¶
-