From baaaa0829a5abd376c5f373ac2ec0bc0f9b68749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 19 Jun 2023 20:31:59 +0200 Subject: [PATCH] =?UTF-8?q?Pro=20bezpe=C4=8Dnost=20Iterable=20->=20Sequenc?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/views_all.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index f05945f5..e35742c7 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -35,7 +35,7 @@ from django.conf import settings import unicodedata import logging import time -from collections.abc import Iterable +from collections.abc import Sequence from seminar.utils import aktivniResitele @@ -678,7 +678,7 @@ def StavDatabazeView(request): # Interní, nemá se nikdy objevit v urls (jinak to účastníci vytrolí) -def formularOKView(request, text='', dalsi_odkazy: Iterable[tuple[str, str]] = ()): +def formularOKView(request, text='', dalsi_odkazy: Sequence[tuple[str, str]] = ()): template_name = 'seminar/formular_ok.html' odkazy = list(dalsi_odkazy) + [ # (Text, odkaz)