]> git.parisson.com Git - teleforma.git/commitdiff
fix tag
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 23 Jan 2023 15:07:36 +0000 (16:07 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 23 Jan 2023 15:07:36 +0000 (16:07 +0100)
teleforma/templatetags/teleforma_tags.py

index 9a726533dbf022c2428a406def01fc484066e606..60a1fdeb808a0f8b8eab0ad5a6d463cdf77a0018 100644 (file)
@@ -198,8 +198,7 @@ def get_video_id(media):
 def set_host(url, host):
     u = urlparse(url)
     return u.scheme + '://' + host + ':' + str(u.port) + u.path
-    
 
-@register.assignment_tag
-def get_random_hash():
+@register.tag
+def get_random_hash(parser, token):
     return get_random_hash()