refactor: Replace %r with %s in string representations of classes.

This commit is contained in:
rht 2017-11-02 05:50:03 +01:00 committed by showell
parent dcc831f767
commit be2a720a04
1 changed files with 2 additions and 2 deletions

View File

@ -1126,7 +1126,7 @@ class AbstractMessage(models.Model):
def __str__(self):
# type: () -> Text
display_recipient = get_display_recipient(self.recipient)
return "<%s: %s / %s / %r>" % (self.__class__.__name__, display_recipient,
return "<%s: %s / %s / %s>" % (self.__class__.__name__, display_recipient,
self.subject, self.sender)
@ -1457,7 +1457,7 @@ class Subscription(models.Model):
def __str__(self):
# type: () -> Text
return "<Subscription: %r -> %s>" % (self.user_profile, self.recipient)
return "<Subscription: %s -> %s>" % (self.user_profile, self.recipient)
@cache_with_key(user_profile_by_id_cache_key, timeout=3600*24*7)
def get_user_profile_by_id(uid):