def make_update(instance, validated_data):
    """
    Performs an update on an instance
    """

    for (key, value) in validated_data.items():

        setattr(instance, key, value)

    instance.save()

    return instance