diff --git a/djblets/webapi/resources.py b/djblets/webapi/resources.py
index 5b12f81943303e1d3893000798777ab71ed30f61..92f8809d68f732631d2c059a556e9030e823925f 100644
--- a/djblets/webapi/resources.py
+++ b/djblets/webapi/resources.py
@@ -626,7 +626,7 @@ class WebAPIResource(object):
 
         return response_args
 
-    def get_object(self, request, *args, **kwargs):
+    def get_object(self, request, id_field=None, *args, **kwargs):
         """Returns an object, given captured parameters from a URL.
 
         This will perform a query for the object, taking into account
@@ -646,8 +646,10 @@ class WebAPIResource(object):
         if self.singleton:
             return queryset.get()
         else:
+            id_field = id_field or self.model_object_key
+
             return queryset.get(**{
-                self.model_object_key: kwargs[self.uri_object_key]
+                id_field: kwargs[self.uri_object_key]
             })
 
     def post(self, *args, **kwargs):
