journals.models.update module

class journals.models.update.PublicationUpdate(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Update to a Publication, for Crossmark.

The Publication’s authors are given authorship of any update by default. The license which is used (in Crossmark metadata) is the same as for the publication.

ADDENDUM = 'addendum'
CLARIFICATION = 'clarification'
CORRECTION = 'correction'
CORRIGENDUM = 'corrigendum'
ERRATUM = 'erratum'
CONCERN = 'expression_of_concern'
NEW_EDITION = 'new_edition'
NEW_VERSION = 'new_version'
PARTIAL_RETRACTION = 'partial_retraction'
REMOVAL = 'removal'
RETRACTION = 'retraction'
WITHDRAWAL = 'withdrawal'
TYPE_CHOICES = (('addendum', 'Addendum'), ('clarification', 'Clarification'), ('correction', 'Correction'), ('corrigendum', 'Corrigendum'), ('erratum', 'Erratum'), ('expression_of_concern', 'Expression of concern'), ('new_edition', 'New edition'), ('new_version', 'New version'), ('partial_retraction', 'Partial_retraction'), ('removal', 'Removal'), ('retraction', 'Retraction'), ('withdrawal', 'Withdrawal'))
publication

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.

number

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

update_type

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

text

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

publication_date

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

doideposit_needs_updating

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

genericdoideposit

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.

doi_label

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

property title
create_doi_label()[source]

Create a doi in the default format.

property doi_string
property citation
get_absolute_url()[source]
xml(doi_batch_id)[source]

Create new XML structure (core, not header), return as a string.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_next_by_publication_date(*, field=<django.db.models.fields.DateField: publication_date>, is_next=True, **kwargs)
get_previous_by_publication_date(*, field=<django.db.models.fields.DateField: publication_date>, is_next=False, **kwargs)
get_update_type_display(*, field=<django.db.models.fields.CharField: update_type>)
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>
publication_id