mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Update serializers.md
Serializer in line 260 needs brackets or response will be: <class 'api.serializers.WaveSerializer'> instead of the representation
This commit is contained in:
parent
0323d6f895
commit
50bc79a874
|
@ -457,7 +457,7 @@ To do so, open the Django shell, using `python manage.py shell`, then import the
|
|||
|
||||
>>> from myapp.serializers import AccountSerializer
|
||||
>>> serializer = AccountSerializer()
|
||||
>>> print(repr(serializer))
|
||||
>>> print(repr(serializer()))
|
||||
AccountSerializer():
|
||||
id = IntegerField(label='ID', read_only=True)
|
||||
name = CharField(allow_blank=True, max_length=100, required=False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user