Skip to content

Commit

Permalink
Merge 26b41b4 into b6880ef
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed Apr 1, 2019
2 parents b6880ef + 26b41b4 commit debd82b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opal/core/lookuplists.py
Expand Up @@ -124,7 +124,7 @@ class Meta:
abstract = True
unique_together = ('code', 'system')

def __unicode__(self):
def __str__(self):
return self.name

def to_dict(self, user):
Expand Down
4 changes: 2 additions & 2 deletions opal/tests/test_lookuplists.py
Expand Up @@ -152,8 +152,8 @@ def test_create_instance_allow_no_symptom(self):


class LookupListClassTestCase(AbstractLookupListTestCase):
def test_unicode(self):
self.assertEqual(self.hat.__unicode__(), u"Cowboy")
def test_str(self):
self.assertEqual(self.hat.__str__(), u"Cowboy")

def test_to_dict(self):
self.assertEqual(self.hat.to_dict(self.user), "Cowboy")
Expand Down

0 comments on commit debd82b

Please sign in to comment.