mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-13 13:16:55 +03:00
971578ca34
* Get rid of runtests.py * Moved test code from rest_framework/tests and rest_framework/runtests to tests * Invoke py.test from setup.py * Invoke py.test from Travis * Invoke py.test from tox * Changed setUpClass to be just plain setUp in test_permissions.py * Updated contribution guideline to show how to invoke py.test
12 lines
269 B
Python
12 lines
269 B
Python
from rest_framework import serializers
|
|
|
|
from tests.accounts.models import Account
|
|
from tests.users.serializers import UserSerializer
|
|
|
|
|
|
class AccountSerializer(serializers.ModelSerializer):
|
|
admins = UserSerializer(many=True)
|
|
|
|
class Meta:
|
|
model = Account
|