jumpserver/apps/users/serializers.py

13 lines
237 B
Python
Raw Normal View History

2016-08-23 16:11:13 +00:00
# -*- coding: utf-8 -*-
#
from rest_framework import serializers
from .models import Role, User, UserGroup
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = '__all__'