mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-17 03:51:03 +03:00
fixed typo
This commit is contained in:
parent
4136b7e44b
commit
e02a8470e8
|
@ -190,7 +190,7 @@ As an example, let's create a field that can be used represent the class name of
|
||||||
# ModelSerializers
|
# ModelSerializers
|
||||||
|
|
||||||
Often you'll want serializer classes that map closely to model definitions.
|
Often you'll want serializer classes that map closely to model definitions.
|
||||||
The `ModelSerializer` class lets you automatically create a Serializer class with fields that corrospond to the Model fields.
|
The `ModelSerializer` class lets you automatically create a Serializer class with fields that correspond to the Model fields.
|
||||||
|
|
||||||
class AccountSerializer(serializers.ModelSerializer):
|
class AccountSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user