We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493542c commit 70839d2Copy full SHA for 70839d2
django_comments_xtd/api/serializers.py
@@ -94,7 +94,7 @@ def validate(self, data):
94
except (AttributeError, TypeError, LookupError):
95
raise serializers.ValidationError("Invalid content_type value: %r"
96
% escape(ctype))
97
- except model.ObjectDoesNotExist:
+ except model.DoesNotExist:
98
raise serializers.ValidationError(
99
"No object matching content-type %r and object PK %r exists."
100
% (escape(ctype), escape(object_pk)))
0 commit comments