'Determine a default set of validators for any unique_together constraints.'

def get_unique_together_validators(self):

    model_class_inheritance_tree = ([self.Meta.model] + list(self.Meta.model._meta.parents.keys()))
    field_names = {field.source for field in self._writable_fields if ((field.source != u'*') and (u'.' not in field.source))}
    validators = []
    for parent_class in model_class_inheritance_tree:
        for unique_together in parent_class._meta.unique_together:
            if field_names.issuperset(set(unique_together)):
                validator = UniqueTogetherValidator(queryset=parent_class._default_manager, fields=unique_together)
                validators.append(validator)
    return validators
