From rjsparks@nostrum.com: Fixed Room.__unicode__() to handle capacity None.
- Legacy-Id: 8864
This commit is contained in:
parent
1c4f8ae470
commit
71057d309a
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue