Room needs dunder-str as well as dunder-unicode

This commit is contained in:
James Polley 2017-10-15 15:33:56 +10:00
parent df1fe7a9f5
commit fab25ad0f5

View file

@ -50,6 +50,9 @@ class Room(models.Model):
def __unicode__(self): def __unicode__(self):
return self.name return self.name
def __str__(self):
return self.name
class Meta: class Meta:
verbose_name = _("Room") verbose_name = _("Room")
verbose_name_plural = _("Rooms") verbose_name_plural = _("Rooms")