Commit 34c63122 authored by fred's avatar fred

add string representation for jingles

parent 6fc38d10
......@@ -160,6 +160,9 @@ class Jingle(models.Model):
filepath = models.CharField(_('File Path'), max_length=255)
duration = models.DurationField(_('Duration'), null=True, blank=True)
def __str__(self):
return self.label
class Stream(models.Model):
class Meta:
......@@ -181,6 +184,3 @@ class StreamedDiffusion(models.Model):
diffusion = models.ForeignKey('emissions.Diffusion')
jingle = models.ForeignKey(Jingle, null=True, blank=True)
stream = models.ForeignKey(Stream)
def __str__(self):
return self.label
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment