added base sqlalchemy manager base

parent bb13fa17
......@@ -2,6 +2,7 @@
API Builder
Build dynamic API based on the provided SQLAlchemy model
"""
from managers import AlchemyModelManager
from viewsets import AlchemyModelViewSet
from rest_framework_nested import routers
......@@ -32,7 +33,7 @@ class APIModelBuilder(object):
manager = type(
str('{}Manager'.format(model.__name__)),
self.base_managers,
self.base_managers + (AlchemyModelManager,),
{
'model_class': model,
}
......
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