From fd2a3762e02b0566131b348bd13cd17cfca6b009 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 17 Dec 2024 11:15:45 +0100 Subject: [PATCH] :green_heart: Force deterministic ordering to avoid test flakiness --- src/openforms/submissions/models/submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openforms/submissions/models/submission.py b/src/openforms/submissions/models/submission.py index 969ff8c7b6..8592e308c2 100644 --- a/src/openforms/submissions/models/submission.py +++ b/src/openforms/submissions/models/submission.py @@ -714,7 +714,7 @@ def get_co_signer(self) -> str: def get_attachments(self) -> SubmissionFileAttachmentQuerySet: from .submission_files import SubmissionFileAttachment - return SubmissionFileAttachment.objects.for_submission(self) + return SubmissionFileAttachment.objects.for_submission(self).order_by("pk") @property def attachments(self) -> SubmissionFileAttachmentQuerySet: