summaryrefslogtreecommitdiff
path: root/patchwork/api/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'patchwork/api/comment.py')
-rw-r--r--patchwork/api/comment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchwork/api/comment.py b/patchwork/api/comment.py
index 3802dab..43b26c6 100644
--- a/patchwork/api/comment.py
+++ b/patchwork/api/comment.py
@@ -14,7 +14,7 @@ from patchwork.api.base import PatchworkPermission
from patchwork.api.embedded import PersonSerializer
from patchwork.models import Cover
from patchwork.models import CoverComment
-from patchwork.models import Submission
+from patchwork.models import Patch
from patchwork.models import PatchComment
@@ -105,7 +105,7 @@ class PatchCommentList(ListAPIView):
lookup_url_kwarg = 'pk'
def get_queryset(self):
- if not Submission.objects.filter(pk=self.kwargs['pk']).exists():
+ if not Patch.objects.filter(pk=self.kwargs['pk']).exists():
raise Http404
return PatchComment.objects.filter(