This commit is contained in:
Andy Baker 2014-11-01 10:25:59 +00:00
parent 6da3813a17
commit 964b3401fb

View File

@ -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()