Fix slot naming if re-using talk types

This commit is contained in:
Tobias 2019-01-04 12:45:51 +13:00
parent 1d7b851bb6
commit 494b8ffb17

View file

@ -178,7 +178,7 @@ class Slot(models.Model):
super(Slot, self).save(*args, **kwargs) super(Slot, self).save(*args, **kwargs)
def __str__(self): def __str__(self):
return "%s: %s" % (self.kind.schedule.section.name, self.name) return "%s: %s" % (self.day.schedule.section.name, self.name)
class SymposionMeta: class SymposionMeta:
select_related = ('kind__schedule__section', 'day') select_related = ('kind__schedule__section', 'day')