work on liquidsoap script (fix & fade) + fix errors in monitor

This commit is contained in:
bkfox
2016-08-02 19:46:31 +02:00
parent d62a47ffe5
commit f5dbc93f7f
9 changed files with 126 additions and 65 deletions

View File

@ -530,9 +530,10 @@ class SectionItemMeta(models.base.ModelBase):
cl = super().__new__(cls, name, bases, attrs)
if not 'template' in attrs:
cl.snake_name = camelcase_to_underscore(name)
cl.template = '{}/sections/{}.html'.format(
cl._meta.app_label,
camelcase_to_underscore(name),
cl.snake_name,
)
if name != 'SectionItem':
try: