Commit 4c7196ee authored by Dominik Rosiek's avatar Dominik Rosiek

name -> source

parent 249cc144
...@@ -22,7 +22,7 @@ class APIViewSet(viewsets.ModelViewSet): ...@@ -22,7 +22,7 @@ class APIViewSet(viewsets.ModelViewSet):
except Exception as e: except Exception as e:
raise Http404 raise Http404
name = "lib.api.{0}".format(object.name) name = "lib.api.{0}".format(object.source)
mod = __import__(name, fromlist=['API']) mod = __import__(name, fromlist=['API'])
api = mod.API(request) api = mod.API(request)
return HttpResponse(api.execute(function), content_type="application/json") return HttpResponse(api.execute(function), content_type="application/json")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment