X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..a7f1c123425b68bd1cd9ccd74fd8b048d9b525b1:/src/funding/models.py diff --git a/src/funding/models.py b/src/funding/models.py index 79385a20d..9907cd017 100644 --- a/src/funding/models.py +++ b/src/funding/models.py @@ -10,6 +10,7 @@ from django.db import models from django.dispatch import receiver from django.template.loader import render_to_string from django.urls import reverse +from django.utils.html import mark_safe from django.utils.timezone import utc from django.utils.translation import ugettext_lazy as _, override import getpaid @@ -38,9 +39,8 @@ class Offer(models.Model): notified_end = models.DateTimeField(_('End notifications sent'), blank=True, null=True) def cover_img_tag(self): - return '' % self.cover.url + return mark_safe('' % self.cover.url) cover_img_tag.short_description = _('Cover preview') - cover_img_tag.allow_tags = True class Meta: verbose_name = _('offer')