Use new exception style

This commit is contained in:
Xavier Ordoquy 2013-01-02 19:06:28 +01:00
parent 9c7524fc33
commit c95fa81cb2

View File

@ -526,7 +526,7 @@ class ModelSerializer(Serializer):
try: try:
instance.full_clean(exclude=self.get_validation_exclusions()) instance.full_clean(exclude=self.get_validation_exclusions())
except ValidationError, err: except ValidationError as err:
self._errors = err.message_dict self._errors = err.message_dict
return None return None