@ -156,6 +156,11 @@ def timetable_by_day(qs, day):
def random_social(value):
return bool(random.getrandbits(1))
@register.filter
def fourth(value):
# return almost in 75% cases True in 25% False
return bool(random.randrange(0,4))
def is_current_page(request, param):
return request.path == param
@ -24,6 +24,7 @@
{% block page_title %}
<div class="page-title">
<h1>{% if meta %}{{ meta.h1 }}{% else %}{% trans 'Выставки' %}{% endif %}</h1>
</div>
{% include 'includes/exposition/catalog_filter_period.html' %}