]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/base.py
Some unicode fixes.
[osqa.git] / forum / models / base.py
index 260910635c2291afaa5a16a83d14048670034d34..1111b43e8b9beac21c3c19fe61a5aa60671462e7 100644 (file)
@@ -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()