summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/models.py12
1 files changed, 6 insertions, 6 deletions
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'<img src="%s" />' % self.button.url)
+ buttons.append(u'<img src="%s" />' % 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'<img src="%s" />' % self.button.url)
+ buttons.append(u'<img src="%s" />' % 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'<img src="%s" />' % self.button.url)
+ buttons.append(u'<img src="%s" />' % 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):