X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2f9cb34a07fcd98effda2fa900e48c31813f14c8..7d6fe886cb8f50060e5d5214073ace9ed5218744:/apps/catalogue/templatetags/catalogue_files.py diff --git a/apps/catalogue/templatetags/catalogue_files.py b/apps/catalogue/templatetags/catalogue_files.py index 8b6ea85f..6ee86f5a 100644 --- a/apps/catalogue/templatetags/catalogue_files.py +++ b/apps/catalogue/templatetags/catalogue_files.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django import template from django.conf import settings register = template.Library() @@ -8,4 +13,3 @@ def as_media_for(uri, document): if uri.startswith('file://'): uri = "https://milpeer.eu%suploads/%d/%s" % (settings.MEDIA_URL, document.pk, uri[len('file://'):]) return uri -