1 from django import template
2 from django.db import models
3 from django.utils.translation import ugettext_lazy as _
5 from combo.data.models import CellBase
6 from combo.data.library import register_cell_class
9 class SoundCell(CellBase):
10 soundfile = models.ForeignKey('emissions.SoundFile', null=True)
13 verbose_name = _('Sound')
15 def render(self, context):
16 tmpl = template.loader.get_template('panikombo/audio.html')
17 context['soundfile'] = self.soundfile
18 return tmpl.render(context)
20 def get_default_form_class(self):
21 from .forms import SoundCellForm