diff --git a/beat/web/code/api.py b/beat/web/code/api.py
index 8d2a8724eac9c9e11da5f0074d10de54da225a09..1bce025e42aa254d3b009a2032db28d4dc4a001c 100755
--- a/beat/web/code/api.py
+++ b/beat/web/code/api.py
@@ -228,16 +228,7 @@ class RetrieveUpdateDestroyCodeView(RetrieveUpdateDestroyContributionView):
         return modified, db_object
 
     def get(self, request, *args, **kwargs):
-        db_objects = self.get_queryset()
-
-        if db_objects.count() == 0:
-            return Response(status=404)
-
-        db_object = db_objects[0]
-        version = int(self.kwargs.get("version", -1))
-
-        if version != -1 and db_object.version != version:
-            return Response(status=404)
+        db_object = self.get_object()
 
         # Check that the user can access it
         (has_access, open_source, accessibility) = db_object.accessibility_for(