SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
73e9f9f5
Commit
73e9f9f5
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Add submission statuses to 'treated'
parent
bbbe058c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
submissions/managers.py
+4
-2
4 additions, 2 deletions
submissions/managers.py
with
4 additions
and
2 deletions
submissions/managers.py
+
4
−
2
View file @
73e9f9f5
...
@@ -5,7 +5,8 @@ from .constants import SUBMISSION_STATUS_OUT_OF_POOL, SUBMISSION_STATUS_PUBLICLY
...
@@ -5,7 +5,8 @@ from .constants import SUBMISSION_STATUS_OUT_OF_POOL, SUBMISSION_STATUS_PUBLICLY
SUBMISSION_STATUS_PUBLICLY_INVISIBLE
,
STATUS_UNVETTED
,
STATUS_VETTED
,
\
SUBMISSION_STATUS_PUBLICLY_INVISIBLE
,
STATUS_UNVETTED
,
STATUS_VETTED
,
\
STATUS_UNCLEAR
,
STATUS_INCORRECT
,
STATUS_NOT_USEFUL
,
STATUS_NOT_ACADEMIC
,
\
STATUS_UNCLEAR
,
STATUS_INCORRECT
,
STATUS_NOT_USEFUL
,
STATUS_NOT_ACADEMIC
,
\
SUBMISSION_HTTP404_ON_EDITORIAL_PAGE
,
STATUS_DRAFT
,
STATUS_PUBLISHED
,
\
SUBMISSION_HTTP404_ON_EDITORIAL_PAGE
,
STATUS_DRAFT
,
STATUS_PUBLISHED
,
\
SUBMISSION_EXCLUDE_FROM_REPORTING
,
STATUS_REJECTED_VISIBLE
,
STATUS_ACCEPTED
SUBMISSION_EXCLUDE_FROM_REPORTING
,
STATUS_REJECTED_VISIBLE
,
\
STATUS_ACCEPTED
,
STATUS_RESUBMITTED
,
STATUS_RESUBMITTED_REJECTED_VISIBLE
class
SubmissionManager
(
models
.
Manager
):
class
SubmissionManager
(
models
.
Manager
):
...
@@ -91,7 +92,8 @@ class SubmissionManager(models.Manager):
...
@@ -91,7 +92,8 @@ class SubmissionManager(models.Manager):
"""
"""
This query returns all Submissions that are expected to be
'
done
'
.
This query returns all Submissions that are expected to be
'
done
'
.
"""
"""
return
self
.
filter
(
status__in
=
[
STATUS_ACCEPTED
,
STATUS_REJECTED_VISIBLE
,
STATUS_PUBLISHED
])
return
self
.
filter
(
status__in
=
[
STATUS_ACCEPTED
,
STATUS_REJECTED_VISIBLE
,
STATUS_PUBLISHED
,
STATUS_RESUBMITTED
,
STATUS_RESUBMITTED_REJECTED_VISIBLE
])
class
EditorialAssignmentManager
(
models
.
Manager
):
class
EditorialAssignmentManager
(
models
.
Manager
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment