import uuid def invoice_upload_path(instance, filename): return "/".join(["userfiles", str(instance.user.id), str(uuid.uuid4()), filename])