X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67bb2531317f49d3d6939f3692938cf066348f6f..a169ba7caa0d9d83fddcbad5ed05f536e0ca1b9e:/src/sponsors/widgets.py?ds=inline 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'