Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class BananaModelSerializer(object):
@property
def errors(self):
err = super(BananaModelSerializer, self).errors
if err:
new_err = dict( detail='validation error', code='validation-error', errors=err,)
return new_err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.