'Calls the instance\'s validate_unique() method and updates the form\'s
validation errors if any were raised.'

def validate_unique(self):

    exclude = self._get_validation_exclusions()
    try:
        self.instance.validate_unique(exclude=exclude)
    except ValidationError as e:
        self._update_errors(e)
