Skip to content

Commit

Permalink
Fix for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoStorm96 committed Jan 31, 2024
1 parent bc0db2f commit 3fa8eda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/views/session_views.py
Original file line number Diff line number Diff line change
@@ -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 _
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 3fa8eda

Please sign in to comment.