From 503c5fd54ba8aa83f367bab6fa3ff2eef11eefe3 Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Fri, 18 Sep 2015 10:29:28 +0200 Subject: [PATCH] fix uuid generation --- channels/backends/redis_py.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/backends/redis_py.py b/channels/backends/redis_py.py index 315c026..35d8f28 100644 --- a/channels/backends/redis_py.py +++ b/channels/backends/redis_py.py @@ -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),