X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87ff3f803d2f147e6fa939a99c4c4a4ca6aa965f..c26ab6ee15974c1133a6d08c459b51199185f25f:/apps/wolnelektury_core/templatetags/common_tags.py diff --git a/apps/wolnelektury_core/templatetags/common_tags.py b/apps/wolnelektury_core/templatetags/common_tags.py new file mode 100644 index 000000000..ccaf03bfd --- /dev/null +++ b/apps/wolnelektury_core/templatetags/common_tags.py @@ -0,0 +1,7 @@ +from django import template +register = template.Library() + + +@register.filter +def build_absolute_uri(uri, request): + return request.build_absolute_uri(uri)