Cleaning: timezone issues, deprecated urls.py imports, missing notes.
[wolnelektury.git] / apps / wolnelektury_core / templatetags / common_tags.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django import template
6 register = template.Library()
7
8
9 @register.filter
10 def build_absolute_uri(uri, request):
11     return request.build_absolute_uri(uri)