import uuid


def generate_uuid_filename(instance, filename):
    """
    Generate a uuid filename keeping the file extension.
    """
    extension = filename.split(".")[-1]
    return "{}.{}".format(uuid.uuid4(), extension)