X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67bb2531317f49d3d6939f3692938cf066348f6f..9ce7b544a0616db407be602ea453771fc9c0a6dd:/src/sponsors/widgets.py 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'