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_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.
Return the set of Submissions for which the user is a registered author.
-
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.
-
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).
-
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.
-
-
class
submissions.managers.SubmissionEventQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySetReturn all events that are meant to be for the author(s) of a submission.
-
class
submissions.managers.EditorialAssignmentQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySet
-
class
submissions.managers.EICRecommendationQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySetQuerySet 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.
-
-
class
submissions.managers.ReportQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySetQuerySet for the Report model.
-
class
submissions.managers.RefereeInvitationQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySetQueryset for RefereeInvitation model.
-
in_process()[source]¶ Filter invitations (non-cancelled) accepted by referee that are not 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.
-