Add klass argument to get_object_or_404 usage

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-16 01:55:33 -04:00
parent 727d2ecd71
commit 798446f362
39 changed files with 164 additions and 164 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class APIObjectEventListView(generics.ListAPIView):
def get_object(self):
content_type = get_object_or_404(
ContentType, app_label=self.kwargs['app_label'],
klass=ContentType, app_label=self.kwargs['app_label'],
model=self.kwargs['model']
)