summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-03-08 22:44:19 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-03-08 22:44:19 (GMT)
commitfbd9eece0669a4b2f32fd0edecba715d1dfe915b (patch)
tree8d8e8d30239e065feda02260035353467dcd112d
parent7917b7d8dc101cdbcb1645019db60db6d4de7d01 (diff)
added big admin image
-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):