mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
commit
1ef4e6b7a8
|
@ -323,7 +323,7 @@ Alternatively, specify the field explicitly on the serializer class:
|
|||
|
||||
#### Fields for model methods and properties.
|
||||
|
||||
With `ModelSerilizer` you can now specify field names in the `fields` option that refer to model methods or properties. For example, suppose you have the following model:
|
||||
With `ModelSerializer` you can now specify field names in the `fields` option that refer to model methods or properties. For example, suppose you have the following model:
|
||||
|
||||
class Invitation(models.Model):
|
||||
created = models.DateTimeField()
|
||||
|
|
Loading…
Reference in New Issue
Block a user