diff --git a/openinghours/templatetags/openinghours_tags.py b/openinghours/templatetags/openinghours_tags.py index fc44f29..ef00199 100644 --- a/openinghours/templatetags/openinghours_tags.py +++ b/openinghours/templatetags/openinghours_tags.py @@ -35,7 +35,7 @@ def to_weekday(date_obj_tpl): return w[1] -@register.assignment_tag +@register.simple_tag def is_open(location=None, attr=None): """ Returns False if the location is closed, or the OpeningHours object @@ -49,7 +49,7 @@ def is_open(location=None, attr=None): return obj -@register.assignment_tag +@register.simple_tag def is_open_now(location=None, attr=None): """ Returns False if the location is closed, or the OpeningHours object @@ -64,7 +64,7 @@ def is_open_now(location=None, attr=None): return obj -@register.assignment_tag +@register.simple_tag def next_time_open(location): """ Returns the next possible OpeningHours object, or False