Commit 7be2c64a authored by Roberto Rosario's avatar Roberto Rosario

Convert a UUID to string in a Python3 compatible way.

Signed-off-by: Roberto Rosario's avatarRoberto Rosario <[email protected]>
parent 942b7c93
......@@ -8,6 +8,7 @@ import time
import uuid
from django.core.files import locks
from django.utils.encoding import force_text
from common.settings import setting_temporary_directory
......@@ -64,7 +65,7 @@ class FileLock(LockingBackend):
def __init__(self, name, timeout=None): = name
self.timeout = timeout or setting_default_lock_timeout.value
self.uuid = uuid.uuid4().get_hex()
self.uuid = force_text(uuid.uuid4())
with open(self.__class__.lock_file, 'r+') as file_object:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment