Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
@python_2_unicode_compatible UserSettings, too
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Aug 11, 2015
1 parent f503731 commit 5a58e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbpreferences/models.py
Expand Up @@ -168,7 +168,7 @@ def get_settings(self, user):
assert isinstance(user_settings, dict)
return user_settings_instance, user_settings


@python_2_unicode_compatible
class UserSettings(models.Model):
objects = UserSettingsManager()

Expand All @@ -188,7 +188,7 @@ def save(self, *args, **kwargs):
_USER_SETTINGS_CACHE.clear()
return super(UserSettings, self).save(*args, **kwargs)

def __unicode__(self):
def __str__(self):
return u"UserSettings for %r: %r" % (self.user, self.settings)

class Meta:
Expand Down

0 comments on commit 5a58e15

Please sign in to comment.