fix uuid generation

This commit is contained in:
Arne Schauf 2015-09-18 10:29:28 +02:00
parent cadae8346a
commit 503c5fd54b

View File

@ -32,7 +32,7 @@ class RedisChannelBackend(BaseChannelBackend):
channel = channel.decode('utf-8')
# Write out message into expiring key (avoids big items in list)
key = self.prefix + uuid.uuid4().get_hex()
key = self.prefix + str(uuid.uuid4())
self.connection.set(
key,
json.dumps(message),