SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b8b7a2cf authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Add SubmissionEvent meta stuff

parent 4ba85928
No related branches found
No related tags found
No related merge requests found
DISCIPLINE_PHYSICS = 'physics'
DISCIPLINE_ASTROPHYSICS = 'astrophysics'
DISCIPLINE_MATH = 'mathematics'
......
......@@ -208,3 +208,12 @@ SUBMISSION_CYCLES = (
(CYCLE_SHORT, 'Short cycle'),
(CYCLE_DIRECT_REC, 'Direct editorial recommendation'),
)
EVENT_GENERAL = 'gen'
EVENT_FOR_EIC = 'eic'
EVENT_FOR_AUTHOR = 'auth'
EVENT_TYPES = (
(EVENT_GENERAL, 'General comment'),
(EVENT_FOR_EIC, 'Comment for Editor-in-charge'),
(EVENT_FOR_AUTHOR, 'Comment for author'),
)
......@@ -82,6 +82,10 @@ class SubmissionManager(models.Manager):
return self.exclude(status__in=SUBMISSION_EXCLUDE_FROM_REPORTING)
class SubmissionEventQuerySet(models.QuerySet):
pass
class EditorialAssignmentManager(models.Manager):
def get_for_user_in_pool(self, user):
return self.exclude(submission__authors=user.contributor)\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment