Commit 3e40e373 authored by fred's avatar fred

strip parenthesis content from nonstop zone labels

parent 1f781797
......@@ -616,6 +616,9 @@ class Nonstop(models.Model):
def __str__(self):
return self.title
def get_public_label(self):
return self.title.split('(')[0].strip()
class Focus(models.Model):
......@@ -232,7 +232,7 @@ def period_program(date_start, date_end, prefetch_sounds=True,
self.datetime = dt
self.title = nonstop.title
self.slug = nonstop.slug
self.label = self.title
self.label = self.get_public_label()
self.nonstop = nonstop
def __repr__(self):
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