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),