aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/accounts/serializers.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/tests/accounts/serializers.py')
-rw-r--r--rest_framework/tests/accounts/serializers.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/rest_framework/tests/accounts/serializers.py b/rest_framework/tests/accounts/serializers.py
new file mode 100644
index 00000000..a27b9ca6
--- /dev/null
+++ b/rest_framework/tests/accounts/serializers.py
@@ -0,0 +1,11 @@
+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