From rjsparks@nostrum.com: Fixed Room.__unicode__() to handle capacity None.

- Legacy-Id: 8864
This commit is contained in:
Henrik Levkowetz 2015-01-14 17:18:40 +00:00
parent 1c4f8ae470
commit 71057d309a

View file

@ -240,7 +240,7 @@ class Room(models.Model):
resources = models.ManyToManyField(ResourceAssociation, blank = True)
def __unicode__(self):
return "%s size: %u" % (self.name, self.capacity)
return "%s size: %s" % (self.name, self.capacity)
def delete_timeslots(self):
for ts in self.timeslot_set.all():