Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
4756b493
Commit
4756b493
authored
Aug 29, 2013
by
Simon Daron
Browse files
debug onair: add get_duration to nonstop slot
parent
54a28c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikdb/emissions/models.py
View file @
4756b493
...
...
@@ -280,5 +280,8 @@ class Nonstop(models.Model):
start
=
models
.
TimeField
()
end
=
models
.
TimeField
()
def
get_duration
(
self
):
return
self
.
start
-
self
.
end
def
__unicode__
(
self
):
return
self
.
title
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