added Room.__unicode__
This commit is contained in:
parent
f30dce6a61
commit
f698d00fc8
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ class Room(models.Model):
|
|||
schedule = models.ForeignKey(Schedule)
|
||||
name = models.CharField(max_length=65)
|
||||
order = models.PositiveIntegerField()
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class SlotKind(models.Model):
|
||||
|
|
Loading…
Reference in a new issue