slot name includes rooms
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
parent
91ae3de6df
commit
acd5e9595a
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ class Slot(models.Model):
|
||||||
return Room.objects.filter(pk__in=self.slotroom_set.values("room"))
|
return Room.objects.filter(pk__in=self.slotroom_set.values("room"))
|
||||||
|
|
||||||
def __unicode__(self):
|
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:
|
class Meta:
|
||||||
ordering = ["day", "start", "end"]
|
ordering = ["day", "start", "end"]
|
||||||
|
|
Loading…
Reference in a new issue