added Room.__unicode__

This commit is contained in:
Brian Rosner 2012-09-19 20:17:48 -06:00
parent f30dce6a61
commit f698d00fc8

View file

@ -27,6 +27,9 @@ class Room(models.Model):
schedule = models.ForeignKey(Schedule) schedule = models.ForeignKey(Schedule)
name = models.CharField(max_length=65) name = models.CharField(max_length=65)
order = models.PositiveIntegerField() order = models.PositiveIntegerField()
def __unicode__(self):
return self.name
class SlotKind(models.Model): class SlotKind(models.Model):