From fbd9eece0669a4b2f32fd0edecba715d1dfe915b Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Fri, 8 Mar 2013 23:44:19 +0100 Subject: added big admin image diff --git a/program/models.py b/program/models.py index 1f7a75e..3d71911 100644 --- a/program/models.py +++ b/program/models.py @@ -54,12 +54,12 @@ class ShowInformation(models.Model): buttons.append(u'x') if self.big_button: - buttons.append(u'' % self.button.url) + buttons.append(u'' % self.big_button.url) else: buttons.append(u'x') return ' '.join(buttons) - admin_buttons.short_description = _("Button") + admin_buttons.short_description = _("Buttons") admin_buttons.allow_tags = True def button_url(self): @@ -109,12 +109,12 @@ class ShowTopic(models.Model): buttons.append(u'x') if self.big_button: - buttons.append(u'' % self.button.url) + buttons.append(u'' % self.big_button.url) else: buttons.append(u'x') return ' '.join(buttons) - admin_buttons.short_description = _("Button") + admin_buttons.short_description = _("Buttons") admin_buttons.allow_tags = True def button_url(self): @@ -164,12 +164,12 @@ class MusicFocus(models.Model): buttons.append(u'x') if self.big_button: - buttons.append(u'' % self.button.url) + buttons.append(u'' % self.big_button.url) else: buttons.append(u'x') return ' '.join(buttons) - admin_buttons.short_description = _("Button") + admin_buttons.short_description = _("Buttons") admin_buttons.allow_tags = True def button_url(self): -- cgit v0.10.2