mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
12 lines
299 B
Python
12 lines
299 B
Python
|
from rest_framework import serializers
|
||
|
|
||
|
from rest_framework.tests.accounts.models import Account
|
||
|
from rest_framework.tests.users.serializers import UserSerializer
|
||
|
|
||
|
|
||
|
class AccountSerializer(serializers.ModelSerializer):
|
||
|
admins = UserSerializer(many=True)
|
||
|
|
||
|
class Meta:
|
||
|
model = Account
|