Skip to content

Commit

Permalink
Don't show rejected articles on issue manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl authored and ajrbyers committed Nov 13, 2019
1 parent cd6db35 commit e767bf2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/journal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,11 @@ def issue_add_article(request, issue_id):
"""

issue = get_object_or_404(models.Issue, pk=issue_id, journal=request.journal)
articles = submission_models.Article.objects.filter(journal=request.journal).exclude(pk__in=issue.article_pks)
articles = submission_models.Article.objects.filter(
journal=request.journal,
).exclude(
Q(pk__in=issue.article_pks) | Q(stage=submission_models.STAGE_REJECTED)
)

if request.POST.get('article'):
article_id = request.POST.get('article')
Expand Down

0 comments on commit e767bf2

Please sign in to comment.