mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 10:03:57 +03:00
Change serializer name for removing confusion
This commit is contained in:
parent
e8167f96e6
commit
f5fc6937ec
|
@ -509,11 +509,11 @@ class ValidationTests(TestCase):
|
|||
self.assertEqual(serializer.is_valid(), True)
|
||||
|
||||
def test_writable_star_source_on_nested_serializer_with_parent_object(self):
|
||||
class Serializer(serializers.Serializer):
|
||||
class TitleSerializer(serializers.Serializer):
|
||||
title = serializers.WritableField(source='title')
|
||||
|
||||
class AlbumSerializer(serializers.ModelSerializer):
|
||||
nested = Serializer(source='*')
|
||||
nested = TitleSerializer(source='*')
|
||||
|
||||
class Meta:
|
||||
model = Album
|
||||
|
|
Loading…
Reference in New Issue
Block a user