def file_upload_to(self, instance, filename):
        """
        Callable passed to the FileField's upload_to kwarg on Document.file
        """
        ext = filename.split(".")[-1]
        filename = "{}.{}".format(uuid.uuid4(), ext)
        return os.path.join("document", filename)
Callable passed to the FileField's upload_to kwarg on Document.file