submissions.models.submission module¶
-
class
submissions.models.submission.
Submission
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A Submission is a preprint sent to SciPost for consideration.
-
preprint
¶ Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
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.
-
acad_field
¶ 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.
-
specialties
¶ 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.
-
topics
¶ 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.
-
approaches
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
editor_in_charge
¶ 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.
-
list_of_changes
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
open_for_commenting
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
open_for_reporting
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
referees_flagged
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
referees_suggested
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
remarks_for_editors
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
reporting_deadline
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
status
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_current
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
visible_public
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
visible_pool
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_resubmission_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.parent
is aForwardManyToOneDescriptor
instance.
-
thread_hash
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
refereeing_cycle
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
fellows
¶ 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.
-
submitted_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 aForwardManyToOneDescriptor
instance.
-
submitted_to
¶ 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.
-
proceedings
¶ 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.
-
title
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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.
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.
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.
-
abstract
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
code_repository_url
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
data_repository_url
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
comments
¶ 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.
-
needs_conflicts_update
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
plagiarism_report
¶ Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
-
pdf_refereeing_pack
¶ The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world') as f: ... instance.file = File(f)
-
metadata
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
submission_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
acceptance_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
latest_activity
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
update_search_index
¶ 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.ManagerFromSubmissionQuerySet object>¶
-
invitation_order
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Returns a python list of the authors, extracted from author_list field.
-
property
cycle
¶ Get cycle object relevant for the Submission.
-
get_notification_url
(url_code)[source]¶ Return url related to the Submission by the url_code meant for Notifications.
-
property
is_resubmission
¶
-
property
notification_name
¶ Return string representation of this Submission as shown in Notifications.
-
property
eic_recommendation_required
¶ Return if Submission requires a EICRecommendation to be formulated.
-
property
revision_requested
¶ Check if Submission has fixed EICRecommendation asking for revision.
-
property
under_consideration
¶ Check if the Submission is currently under consideration (in other words: is undergoing editorial processing).
-
property
open_for_resubmission
¶ Check if Submission has fixed EICRecommendation asking for revision.
-
property
reporting_deadline_has_passed
¶ Check if Submission has passed its reporting deadline.
-
property
reporting_deadline_approaching
¶ Check if reporting deadline is within 7 days from now but not passed yet.
-
property
is_open_for_reporting_within_deadline
¶ Check if Submission is open for reporting and within deadlines.
-
property
submission_date_ymd
¶ Return the submission date in YYYY-MM-DD format.
-
property
original_submission_date
¶ Return the submission_date of the first Submission in the thread.
-
property
in_prescreening
¶
-
property
in_refereeing_phase
¶ Check if Submission is in active refereeing phase.
This is not meant for functional logic, rather for explanatory functionality to the user.
-
property
can_reset_reporting_deadline
¶ Check if reporting deadline is allowed to be reset.
-
property
thread_full
¶ Return all Submissions in the database in this thread.
-
property
thread
¶ Return all (public) Submissions in the database in this thread.
-
thread_sequence_order
¶ Return the ordering of this Submission within its thread.
-
other_versions
¶ Return other Submissions in the database in this thread.
-
get_latest_public_version
()[source]¶ Return the latest publicly-visible version in the thread of this Submission.
-
add_event_for_eic
(message)[source]¶ Generate message meant for EIC and Editorial Administration only.
Generate message meant for authors only.
Identify coauthorships from arXiv, using author surname matching.
-
is_sending_editorial_invitations
()[source]¶ Return whether editorial assignments are being send out.
-
has_inadequate_pool_composition
()[source]¶ Check whether the EIC actually in the pool of the Submission.
(Could happen on resubmission or reassignment after wrong Journal selection)
-
property
editorial_decision
¶ Returns the latest EditorialDecision (if it exists).
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
acad_field_id
¶
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.
-
citationnotification_set
¶ 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.
-
collection_set
¶ 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.
-
conflict_of_interests
¶ 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.
-
editor_in_charge_id
¶
-
editorial_assignments
¶ 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.
-
editorial_communications
¶ 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.
-
editorialdecision_set
¶ 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.
-
eicrecommendations
¶ 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.
-
events
¶ 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.
-
get_next_by_latest_activity
(*, field=<django.db.models.fields.DateTimeField: latest_activity>, is_next=True, **kwargs)¶
-
get_next_by_reporting_deadline
(*, field=<django.db.models.fields.DateTimeField: reporting_deadline>, is_next=True, **kwargs)¶
-
get_next_by_submission_date
(*, field=<django.db.models.fields.DateTimeField: submission_date>, is_next=True, **kwargs)¶
-
get_previous_by_latest_activity
(*, field=<django.db.models.fields.DateTimeField: latest_activity>, is_next=False, **kwargs)¶
-
get_previous_by_reporting_deadline
(*, field=<django.db.models.fields.DateTimeField: reporting_deadline>, is_next=False, **kwargs)¶
-
get_previous_by_submission_date
(*, field=<django.db.models.fields.DateTimeField: submission_date>, is_next=False, **kwargs)¶
-
get_refereeing_cycle_display
(*, field=<django.db.models.fields.CharField: refereeing_cycle>)¶
-
get_status_display
(*, field=<django.db.models.fields.CharField: status>)¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_resubmission_of_id
¶
-
plagiarism_report_id
¶
-
preprint_id
¶
-
proceedings_id
¶
-
production_stream
¶ Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurant
is aReverseOneToOneDescriptor
instance.
-
publication
¶ Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurant
is aReverseOneToOneDescriptor
instance.
-
referee_invitations
¶ 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.
-
registration_invitations
¶ 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.
-
remarks
¶ 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.
-
reports
¶ 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.
-
submitted_by_id
¶
-
submitted_to_id
¶
-
successor
¶ 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.
-
tierings
¶ 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.
-
-
class
submissions.models.submission.
SubmissionEvent
(*args, **kwargs)[source]¶ Bases:
submissions.behaviors.SubmissionRelatedObjectMixin
,scipost.behaviors.TimeStampedModel
Private message directly related to a Submission.
The SubmissionEvent’s goal is to act as a messaging model for the Submission cycle. Its main audience will be the author(s) and the Editor-in-charge of a Submission.
Be aware that both the author and editor-in-charge will read the submission event. Make sure the right text is given to the appropriate event-type, to protect the fellow’s identity.
-
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 aForwardManyToOneDescriptor
instance.
-
event
¶ 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.
-
objects
= <django.db.models.manager.ManagerFromSubmissionEventQuerySet object>¶
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
get_event_display
(*, field=<django.db.models.fields.CharField: event>)¶
-
get_next_by_created
(*, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)¶
-
get_next_by_latest_activity
(*, field=<scipost.db.fields.AutoDateTimeField: latest_activity>, is_next=True, **kwargs)¶
-
get_previous_by_created
(*, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)¶
-
get_previous_by_latest_activity
(*, field=<scipost.db.fields.AutoDateTimeField: latest_activity>, is_next=False, **kwargs)¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
submission_id
¶
-
-
class
submissions.models.submission.
SubmissionTiering
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A Fellow’s quality tiering of a Submission for a given Journal, given during voting.
-
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 aForwardManyToOneDescriptor
instance.
-
fellow
¶ 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.
-
for_journal
¶ 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.
-
tier
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
fellow_id
¶
-
for_journal_id
¶
-
get_tier_display
(*, field=<django.db.models.fields.SmallIntegerField: tier>)¶
-
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>¶
-
submission_id
¶
-