submissions.managers module

class submissions.managers.SubmissionQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

user_filter(user)[source]

Filter on basic conflict of interests.

Prevent conflict of interest by filtering submissions possibly related to user. This filter should be inherited by other filters.

pool(user)[source]

Return the user-dependent pool of Submissions in active referee phase.

pool_editable(user)[source]

Return the editable pool for a certain user.

This is similar to the regular pool, however it also contains submissions that are hidden in the regular pool, but should still be able to be opened by for example the Editor-in-charge.

filter_for_eic(user)[source]

Return the set of Submissions the user is Editor-in-charge for.

If user is an Editorial Administrator: return the full pool.

filter_for_author(user)[source]

Return the set of Submissions for which the user is a registered author.

prescreening()[source]

Return submissions just coming in and going through pre-screening.

assigned()[source]

Return submissions with assigned Editor-in-charge.

unassigned()[source]

Return submissions passed pre-screening, but unassigned.

without_eic()[source]

Return Submissions that still need Editorial Assignment.

actively_refereeing()[source]

Return submission currently in some point of the refereeing round.

public()[source]

Return all publicly available Submissions.

public_listed()[source]

List all public Submissions if not published and submitted.

Implement: Use this filter to also determine, using a optional user argument,

if the query should be filtered or not as a logged in EdCol Admin should be able to view all submissions.

public_newest()[source]

This query contains set of public() submissions, filtered to only the newest available version.

treated()[source]

This query returns all Submissions that are presumed to be ‘done’.

originally_submitted(from_date, until_date)[source]

Returns the submissions originally received between from_date and until_date (including subsequent resubmissions, even if those came in later).

accepted()[source]

Return accepted Submissions.

awaiting_puboffer_acceptance()[source]

Return Submissions for which an outstanding publication offer exists.

revision_requested()[source]

Return Submissions with a fixed EICRecommendation: minor or major revision.

published()[source]

Return published Submissions.

unpublished()[source]

Return unpublished Submissions.

assignment_failed()[source]

Return Submissions which have failed assignment.

rejected()[source]

Return rejected Submissions.

withdrawn()[source]

Return withdrawn Submissions.

open_for_reporting()[source]

Return Submission that allow for reporting.

open_for_commenting()[source]

Return Submission that allow for commenting.

needs_conflicts_update()[source]

Return set of Submissions that need an ConflictOfInterest update.

has_editor_invitations_to_be_sent()[source]

Return Submissions that have EditorialAssignments that still need to be sent.

candidate_for_resubmission(user)[source]

Return all Submissions that are open for resubmission specialised for a certain User.

class submissions.managers.SubmissionEventQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

for_author()[source]

Return all events that are meant to be for the author(s) of a submission.

for_eic()[source]

Return all events that are meant to be for the Editor-in-charge of a submission.

last_hours(hours=24)[source]

Return all events of the last hours hours.

plagiarism_report_to_be_uploaded()[source]

Return Submissions that has not been sent to iThenticate for their plagiarism check.

plagiarism_report_to_be_updated()[source]

Return Submissions for which their iThenticateReport has not received a report yet.

class submissions.managers.EditorialAssignmentQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

get_for_user_in_pool(user)[source]
last_year()[source]
refereeing_deadline_within(days=7)[source]
next_invitation_to_be_sent(submission_id)[source]

Return EditorialAssignment that needs to be sent next.

preassigned()[source]
invited()[source]
need_response()[source]

Return EdAssignments that are non-deprecated or without response.

ongoing()[source]
with_required_actions()[source]
accepted()[source]
declined()[source]
declined_red()[source]

Return EditorialAssignments declined with a ‘red-label reason’.

deprecated()[source]
completed()[source]
class submissions.managers.EICRecommendationQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

QuerySet for the EICRecommendation model.

user_must_vote_on(user)[source]

Return the subset of EICRecommendation the User is requested to vote on.

user_current_voted(user)[source]

Return the subset of EICRecommendations currently undergoing voting, for which the User has already voted.

put_to_voting()[source]

Return the subset of EICRecommendation currently undergoing voting.

voting_in_preparation()[source]

Return the subset of EICRecommendation currently undergoing preparation for voting.

active()[source]

Return the subset of non-deprecated EICRecommendations.

fixed()[source]

Return the subset of fixed EICRecommendations.

asking_revision()[source]

Return EICRecommendation asking for a minor or major revision.

class submissions.managers.ReportQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

QuerySet for the Report model.

accepted()[source]

Return the subset of vetted Reports.

awaiting_vetting()[source]

Return the subset of unvetted Reports.

rejected()[source]

Return the subset of rejected Reports.

in_draft()[source]

Return the subset of Reports in draft.

non_draft()[source]

Return the subset of unvetted, vetted and rejected Reports.

contributed()[source]

Return the subset of contributed Reports.

invited()[source]

Return the subset of invited Reports.

class submissions.managers.RefereeInvitationQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

Queryset for RefereeInvitation model.

auto_reminders_allowed()[source]
awaiting_response()[source]

Filter invitations awaiting response by referee.

pending()[source]

DEPRECATED.

accepted()[source]

Filter invitations (non-cancelled) accepted by referee.

declined()[source]

Filter invitations declined by referee.

open()[source]
outstanding()[source]
in_process()[source]

Filter invitations (non-cancelled) accepted by referee that are not fulfilled.

non_cancelled()[source]

Return invitations awaiting reponse, accepted or fulfilled.

needs_attention()[source]

Filter invitations that needs attention.

The following is defined as needs attention: 1. not responded to invite in more than 3 days. 2. not fulfilled (but accepted) with deadline within 7 days.

approaching_deadline(days=2)[source]

Filter non-fulfilled invitations for which the deadline is within days days.

overdue()[source]

Filter non-fulfilled invitations that are overdue.

class submissions.managers.EditorialCommunicationQueryset(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

for_referees()[source]

Only return communication between Referees and Editors.

for_authors()[source]

Only return communication between Authors and Editors.