submissions.models.referee_invitation module¶
-
class
submissions.models.referee_invitation.RefereeInvitation(*args, **kwargs)[source]¶ Bases:
submissions.behaviors.SubmissionRelatedObjectMixin,django.db.models.base.ModelInvitation 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.parentis aForwardManyToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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>¶
-
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.
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.
-
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¶
-