Commit ef4c1e1a authored by Mike Waters's avatar Mike Waters
Browse files

Merge pull request #12 from ashish-gore/read_only_router

Small change to use ReadonlyRouter for data-api
parents b1cf4eb5 94737c50
......@@ -4,7 +4,7 @@ Build dynamic API based on the provided SQLAlchemy model
from managers import AlchemyModelManager
from viewsets import AlchemyModelViewSet
from rest_framework_nested import routers
from routers import ReadOnlyRouter
class APIModelBuilder(object):
......@@ -27,7 +27,7 @@ class APIModelBuilder(object):
def urls(self):
router = routers.SimpleRouter()
router = ReadOnlyRouter()
for model in self.models:
manager = type(
Supports Markdown
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