2014-09-30 09:49:07 +00:00
|
|
|
from rest_framework import viewsets
|
|
|
|
|
|
|
|
from orchestra.api import router, SetPasswordApiMixin
|
|
|
|
from orchestra.apps.accounts.api import AccountApiMixin
|
|
|
|
|
2014-09-30 16:39:47 +00:00
|
|
|
from .models import SystemUser
|
|
|
|
from .serializers import SystemUserSerializer
|
2014-09-30 09:49:07 +00:00
|
|
|
|
|
|
|
|
2014-09-30 16:39:47 +00:00
|
|
|
class SystemUserViewSet(AccountApiMixin, SetPasswordApiMixin, viewsets.ModelViewSet):
|
|
|
|
model = SystemUser
|
|
|
|
serializer_class = SystemUserSerializer
|
2014-09-30 09:49:07 +00:00
|
|
|
|
|
|
|
|
2014-09-30 16:39:47 +00:00
|
|
|
router.register(r'systemusers', SystemUserViewSet)
|