diff --git a/server/vcr-server/api/v4/views/rest/credential.py b/server/vcr-server/api/v4/views/rest/credential.py index 125c15f7f..8c69ee8bc 100644 --- a/server/vcr-server/api/v4/views/rest/credential.py +++ b/server/vcr-server/api/v4/views/rest/credential.py @@ -25,11 +25,6 @@ def get_object(self): raise Http404() filter = {"credential_id": credential_id} - # If the input parameter is a pure int, treat as an internal database pk - try: - filter = {"pk": int(credential_id)} - except (ValueError, TypeError): - pass queryset = self.filter_queryset(self.get_queryset()) obj = get_object_or_404(queryset, **filter)