From ce8f38a69ed16416dc6edfb61f986e1d5042aa79 Mon Sep 17 00:00:00 2001 From: jnywong Date: Sat, 23 Nov 2024 19:42:17 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Minor=20edits=20to=20404?= =?UTF-8?q?=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frx_challenges/web/views/submissions.py | 2 +- frx_challenges/web/views/versions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frx_challenges/web/views/submissions.py b/frx_challenges/web/views/submissions.py index da6bf45..8abac72 100644 --- a/frx_challenges/web/views/submissions.py +++ b/frx_challenges/web/views/submissions.py @@ -63,7 +63,7 @@ def detail(request: HttpRequest, id: int) -> HttpResponse: try: submission = Submission.objects.get(id=id) except Submission.DoesNotExist: - raise Http404("Submission does not exist") + raise Http404("Submission does not exist.") is_collaborator = _validate_collaborator(request, id) versions = submission.versions.all() diff --git a/frx_challenges/web/views/versions.py b/frx_challenges/web/views/versions.py index caff357..f8229d2 100644 --- a/frx_challenges/web/views/versions.py +++ b/frx_challenges/web/views/versions.py @@ -16,7 +16,7 @@ def upload(request: HttpRequest, id: int) -> HttpResponse: is_collaborator = _validate_collaborator(request, id) if not is_collaborator: - raise Http404("You are not a collaborator of this submission.") + raise Http404("Uploads are only available to submission collaborators.") if request.method == "POST": form = UploadForm(data=request.POST, files=request.FILES, id=id) if form.is_valid():