Fix: inscriptions bda

Problèmes d'encodage sur la fonction `_hash_queryset`
This commit is contained in:
Martin Pépin 2016-09-24 17:34:15 +02:00
parent cf430b5d3b
commit d89493856f

View file

@ -66,7 +66,7 @@ def etat_places(request, tirage_id):
def _hash_queryset(queryset):
data = serializers.serialize("json", queryset).encode()
data = serializers.serialize("json", queryset).encode('utf-8')
hasher = hashlib.sha256()
hasher.update(data)
return hasher.hexdigest()