diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index fee8f024f2..d216067706 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -81,7 +81,10 @@ def __eq__(self, other): return r def __ne__(self, other): - return not self.__eq__(other) + r = self.__eq__(other) + if r is NotImplemented: + return NotImplemented + return not r def __repr__(self): return 'ErrorDetail(string=%r, code=%r)' % (