Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
django-panik-emissions
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
django-panik-emissions
Commits
3e40e373
Commit
3e40e373
authored
Oct 25, 2020
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strip parenthesis content from nonstop zone labels
parent
1f781797
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
emissions/models.py
emissions/models.py
+3
-0
emissions/utils.py
emissions/utils.py
+1
-1
No files found.
emissions/models.py
View file @
3e40e373
...
...
@@ -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
()
@
python_2_unicode_compatible
class
Focus
(
models
.
Model
):
...
...
emissions/utils.py
View file @
3e40e373
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment