@ -149,10 +149,8 @@ class BetterErrorsMixin:
ret.extend(self.flatten_errors("{}.{}".format(field_name, error_key), error))
else:
for error in errors:
if hasattr(error, "detail"):
if error.messages:
message = error.detail[0]
message = error.messages[0]
elif hasattr(error, "message"):
message = error.message
message = str(error)
ret.append(