Skip to content
Snippets Groups Projects
Commit 732f09ce authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Removed unused methods

parent 4f7a9b1f
No related branches found
No related tags found
No related merge requests found
......@@ -145,12 +145,6 @@ class Host(models.Model):
def __str__(self):
return '%s' % self.name
def get_absolute_url(self):
return reverse('host-detail', args=[str(self.id)])
def active_shows(self):
return self.shows.filter(schedules__until__gt=timezone.now())
def save(self, *args, **kwargs):
super(Host, self).save(*args, **kwargs)
......@@ -224,13 +218,6 @@ class Show(models.Model):
return '%04d | %s' % (self.id, self.name)
def get_absolute_url(self):
return reverse('show-detail', args=[self.slug])
# Called by show templates
def active_schedules(self):
return self.schedules.filter(until__gt=date.today())
# FIXME: this does not belong here
@staticmethod
def is_editable(show_view_set, show_id):
......@@ -1025,9 +1012,6 @@ class TimeSlot(models.Model):
self.hash = str(''.join(s for s in string if s.isdigit()))
return self
def get_absolute_url(self):
return reverse('timeslot-detail', args=[str(self.id)])
class Note(models.Model):
STATUS_CHOICES = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment