From 3fa8edad75f267aefc1e1544ab3d94c1fe804787 Mon Sep 17 00:00:00 2001 From: Edo Storm Date: Wed, 31 Jan 2024 11:35:07 +0100 Subject: [PATCH] Fix for failing test --- tasks/views/session_views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/views/session_views.py b/tasks/views/session_views.py index 61d02ba46..74bcc47b1 100644 --- a/tasks/views/session_views.py +++ b/tasks/views/session_views.py @@ -1,6 +1,5 @@ # -*- encoding: utf-8 -*- -from typing import Any from django.urls import reverse from django.http import HttpResponseRedirect from django.utils.translation import ugettext_lazy as _ @@ -57,7 +56,7 @@ def action(self, request): order = study.session_set.count() + 1 self.session = Session.objects.create(order=order, study=study) - def get_redirect_url(self, *args: Any, **kwargs: Any) -> str | None: + def get_redirect_url(self, *args, **kwargs): super().get_redirect_url(*args, **kwargs) return reverse("tasks:session_update", args=[self.session.pk])