Skip to content
Snippets Groups Projects
Commit 2638a34a authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fixed text color selection

parent 6b6050bc
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ class BroadcastFormat(models.Model): ...@@ -24,7 +24,7 @@ class BroadcastFormat(models.Model):
verbose_name_plural = _("Broadcast formats") verbose_name_plural = _("Broadcast formats")
def admin_color(self): def admin_color(self):
return u'<span style="background-color:%s; color: %s padding: 0.2em">%s/%s</span>' % (self.color, self.text_color, self.color, self.text_color) return u'<span style="background-color: %s; color: %s; padding: 0.2em">%s/%s</span>' % (self.color, self.text_color, self.color, self.text_color)
admin_color.short_description = _("Color") admin_color.short_description = _("Color")
admin_color.allow_tags = True admin_color.allow_tags = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment