X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/7fa400fc50e17b3c017615b296934945531fa715..50d5fd554fe0f2633459ba3e8e57674869ba1643:/forum/models/base.py diff --git a/forum/models/base.py b/forum/models/base.py index 2609106..1111b43 100644 --- a/forum/models/base.py +++ b/forum/models/base.py @@ -162,7 +162,7 @@ class CachedQuerySet(models.query.QuerySet): yield row def _get_query_hash(self): - return md5(str(self.query)).hexdigest() + return md5(unicode(self.query).encode("utf-8")).hexdigest()