submissions.models.referee_invitation module

class submissions.models.referee_invitation.RefereeInvitation(*args, **kwargs)[source]

Bases: submissions.behaviors.SubmissionRelatedObjectMixin, django.db.models.base.Model

Invitation to an active professional scientist to referee a Submission.

A RefereeInvitation represents an invitation to a Contributor or a non-registered scientist to write a Report for a specific Submission. The instance will register the response to the invitation and the current status of the refereeing duty if the invitation has been accepted.

profile

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.

submission

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.

referee

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.

title

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

first_name

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

last_name

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

email_address

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

invitation_key

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

date_invited

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

invited_by

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.

auto_reminders_allowed

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

nr_reminders

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

date_last_reminded

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

accepted

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

date_responded

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

refusal_reason

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

fulfilled

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

cancelled

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.ManagerFromRefereeInvitationQuerySet object>
get_absolute_url()[source]

Return url of the invitation’s processing page.

property referee_str

Return the most up-to-date name of the Referee.

property notification_name

Return string representation of this RefereeInvitation as shown in Notifications.

property related_report

Return the Report that’s been created for this invitation.

property needs_sending

Check if the invitation has been emailed.

property needs_response

Check if invitation has no response in more than three days.

property needs_fulfillment_reminder

Check if isn’t fullfilled but deadline is closing in.

property is_overdue

Check if isn’t fullfilled but deadline has expired.

property needs_attention

Check if invitation needs attention by the editor.

property get_status_display

Get status: a combination between different boolean fields.

reset_content()[source]

Reset the invitation’s information as a new invitation.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_accepted_display(*, field=<django.db.models.fields.BooleanField: accepted>)
get_refusal_reason_display(*, field=<django.db.models.fields.CharField: refusal_reason>)
get_title_display(*, field=<django.db.models.fields.CharField: title>)
id

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

invited_by_id
profile_id
referee_id
submission_id