X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67bb2531317f49d3d6939f3692938cf066348f6f..154870f0416b6b387637d6035c96321410512e95:/src/sponsors/widgets.py?ds=sidebyside diff --git a/src/sponsors/widgets.py b/src/sponsors/widgets.py index 764154946..06bc3041a 100644 --- a/src/sponsors/widgets.py +++ b/src/sponsors/widgets.py @@ -23,7 +23,7 @@ class SponsorPageWidget(forms.Textarea): def render(self, name, value, attrs=None): output = [super(SponsorPageWidget, self).render(name, value, attrs)] - sponsors = [(unicode(obj), obj.pk, obj.logo.url) for obj in models.Sponsor.objects.all().iterator()] + sponsors = [(str(obj), obj.pk, obj.logo.url) for obj in models.Sponsor.objects.all().iterator()] sponsors_js = ', '.join('{name: "%s", id: %d, image: "%s"}' % sponsor for sponsor in sponsors) output.append(u'