Changeset - 135a79a97b91
[Not reviewed]
Merge
0 3 0
Patrick Altman - 9 years ago 2015-08-03 12:44:57
paltman@gmail.com
Merge pull request #110 from miurahr/slot_name_with_rooms

slot name includes rooms
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion/schedule/models.py
Show inline comments
...
 
@@ -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"]
0 comments (0 inline, 0 general)