def get_upload_path(instance, filename):
    if not instance.name:
        instance.name = filename  # set original filename

    filename = '{name}.{ext}'.format(name=uuid4().hex,
                                     ext=filename.split('.')[-1])

    return 'post_office_attachments/' + filename
Create tenants and users, using the broker pattern.
dataset/ETHPy150Open ui/django-post_office/post_office/models.py/get_upload_path--crossover with--dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/context/keystone/users.py/UserGenerator.setup