Commit 4756b493 authored by Simon Daron's avatar Simon Daron
Browse files

debug onair: add get_duration to nonstop slot

parent 54a28c2b
......@@ -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
Supports Markdown
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