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
d4089b45
Commit
d4089b45
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Fix duplicate EICRecommendation saved on resubmission
parent
95131fd0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
submissions/forms.py
+1
-1
1 addition, 1 deletion
submissions/forms.py
submissions/views.py
+2
-3
2 additions, 3 deletions
submissions/views.py
with
3 additions
and
4 deletions
submissions/forms.py
+
1
−
1
View file @
d4089b45
...
...
@@ -93,7 +93,7 @@ class SubmissionChecks:
identifiers
=
self
.
identifier_into_parts
(
identifier
)
submission
=
(
Submission
.
objects
.
filter
(
arxiv_identifier_wo_vn_nr
=
identifiers
[
'
arxiv_identifier_wo_vn_nr
'
])
.
order_by
(
'
-
arxiv_vn_nr
'
).
last
())
.
order_by
(
'
arxiv_vn_nr
'
).
last
())
# If submissions are found; check their statuses
if
submission
:
...
...
This diff is collapsed.
Click to expand it.
submissions/views.py
+
2
−
3
View file @
d4089b45
...
...
@@ -6,7 +6,7 @@ from django.contrib.auth.decorators import login_required, permission_required
from
django.contrib.auth.models
import
Group
from
django.core.urlresolvers
import
reverse
,
reverse_lazy
from
django.db
import
transaction
from
django.http
import
Http404
from
django.http
import
Http404
,
HttpResponseRedirect
from
django.shortcuts
import
get_object_or_404
,
render
,
redirect
from
django.template
import
Template
,
Context
from
django.utils
import
timezone
...
...
@@ -75,10 +75,9 @@ class RequestSubmission(CreateView):
# Send emails
SubmissionUtils
.
load
({
'
submission
'
:
submission
})
SubmissionUtils
.
send_authors_submission_ack_email
()
return
super
().
form_valid
(
form
)
return
HttpResponseRedirect
(
self
.
success_url
)
def
form_invalid
(
self
,
form
):
# r = form.errors
for
error_messages
in
form
.
errors
.
values
():
messages
.
warning
(
self
.
request
,
*
error_messages
)
return
super
().
form_invalid
(
form
)
...
...
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