From acd5e9595a780b3f48031c04109d168d58a961d5 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sat, 1 Aug 2015 12:42:00 +0900 Subject: [PATCH] slot name includes rooms Signed-off-by: Hiroshi Miura --- symposion/schedule/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/symposion/schedule/models.py b/symposion/schedule/models.py index 5b2a9413..a0f88e81 100644 --- a/symposion/schedule/models.py +++ b/symposion/schedule/models.py @@ -125,7 +125,8 @@ class Slot(models.Model): return Room.objects.filter(pk__in=self.slotroom_set.values("room")) def __unicode__(self): - return u"%s %s (%s - %s)" % (self.day, self.kind, self.start, self.end) + roomlist = ' '.join(map(lambda r: r.__unicode__(), self.rooms)) + return u"%s %s (%s - %s) %s" % (self.day, self.kind, self.start, self.end, roomlist) class Meta: ordering = ["day", "start", "end"]