Pro bezpečnost Iterable -> Sequence
This commit is contained in:
		
							parent
							
								
									e641724eab
								
							
						
					
					
						commit
						baaaa0829a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -35,7 +35,7 @@ from django.conf import settings | ||||||
| import unicodedata | import unicodedata | ||||||
| import logging | import logging | ||||||
| import time | import time | ||||||
| from collections.abc import Iterable | from collections.abc import Sequence | ||||||
| 
 | 
 | ||||||
| from seminar.utils import aktivniResitele | from seminar.utils import aktivniResitele | ||||||
| 
 | 
 | ||||||
|  | @ -678,7 +678,7 @@ def StavDatabazeView(request): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Interní, nemá se nikdy objevit v urls (jinak to účastníci vytrolí) | # 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' | 	template_name = 'seminar/formular_ok.html' | ||||||
| 	odkazy = list(dalsi_odkazy) + [ | 	odkazy = list(dalsi_odkazy) + [ | ||||||
| 		# (Text, odkaz) | 		# (Text, odkaz) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue