From 6b17e021ca6106a506c034965d3fb53f23ed6a5d Mon Sep 17 00:00:00 2001 From: James Polley Date: Sun, 15 Oct 2017 15:07:56 +1000 Subject: [PATCH] Add a __unicode__ method to the Room model Closes #25 --- vendor/symposion/schedule/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/symposion/schedule/models.py b/vendor/symposion/schedule/models.py index 9c738c20..fb4ab11f 100644 --- a/vendor/symposion/schedule/models.py +++ b/vendor/symposion/schedule/models.py @@ -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: