Skip to content

Commit

Permalink
Apply message suggestions from Janno
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Wolf <[email protected]>
  • Loading branch information
FSadrieh and janno42 authored Dec 2, 2024
1 parent 0051d8e commit 487d09f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evap/staff/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,10 +1098,10 @@ def course_copy(request, course_id):
def create_exam_evaluation(request: HttpRequest) -> HttpResponse:
evaluation = get_object_from_dict_pk_entry_or_logged_40x(Evaluation, request.POST, "evaluation_id")
if evaluation.is_single_result:
raise SuspiciousOperation("Creating an exam evaluation for a single result evaluation is not allowed")
raise SuspiciousOperation("Creating an exam evaluation for a single result evaluation is not allowed.")

if evaluation.has_exam_evaluation:
raise SuspiciousOperation("An exam evaluation already exists for this course")
raise SuspiciousOperation("An exam evaluation already exists for this course.")

exam_date_string = request.POST.get("exam_date")
if not exam_date_string:
Expand Down

0 comments on commit 487d09f

Please sign in to comment.