Add a __unicode__ method to the Room model

Closes #25
This commit is contained in:
James Polley 2017-10-15 15:07:56 +10:00
parent b154d90eed
commit 6b17e021ca

View file

@ -47,7 +47,7 @@ class Room(models.Model):
name = models.CharField(max_length=65, verbose_name=_("Name"))
order = models.PositiveIntegerField(verbose_name=_("Order"))
def __str__(self):
def __unicode__(self):
return self.name
class Meta: