Room needs dunder-str as well as dunder-unicode
This commit is contained in:
parent
df1fe7a9f5
commit
fab25ad0f5
1 changed files with 3 additions and 0 deletions
3
vendor/symposion/schedule/models.py
vendored
3
vendor/symposion/schedule/models.py
vendored
|
@ -50,6 +50,9 @@ class Room(models.Model):
|
|||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Room")
|
||||
verbose_name_plural = _("Rooms")
|
||||
|
|
Loading…
Reference in a new issue