SciPost Code Repository

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

Fix preceeding reports filter

parent d5417c56
No related branches found
No related tags found
No related merge requests found
...@@ -431,7 +431,8 @@ class Report(SubmissionRelatedObjectMixin, models.Model): ...@@ -431,7 +431,8 @@ class Report(SubmissionRelatedObjectMixin, models.Model):
author of the report already has a vetted report in the series of the specific Submission. author of the report already has a vetted report in the series of the specific Submission.
""" """
return (self.author.reports.accepted() return (self.author.reports.accepted()
.filter(submission__arxiv_identifier_wo_vn_nr=self.submission.arxiv_identifier_wo_vn_nr) .filter(submission__arxiv_identifier_wo_vn_nr=self.submission.arxiv_identifier_wo_vn_nr,
submission__arxiv_vn_nr__lt=self.submission.arxiv_vn_nr)
.exists()) .exists())
def latest_report_from_series(self): def latest_report_from_series(self):
......
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