Skip to content

Commit

Permalink
Prevent duplicates in galley list #166
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull authored and mauromsl committed Aug 22, 2024
1 parent 247a4ed commit 607aca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ def typesetting_assignment(request, assignment_id):
galleys = core_models.Galley.objects.filter(
Q(article=article),
(Q(file__files_to_typeset=assignment) | Q(file__owner=request.user)),
)
).distinct()

supplementary_files = article.supplementary_files.filter(
file__pk__in=[file.pk for file in assignment.files_to_typeset.all()],
Expand Down

0 comments on commit 607aca4

Please sign in to comment.