Commit 1ef4e6b7 by Tom Christie

Merge pull request #2006 from andybak/patch-1

typo fix
parents 6da3813a 964b3401
...@@ -323,7 +323,7 @@ Alternatively, specify the field explicitly on the serializer class: ...@@ -323,7 +323,7 @@ Alternatively, specify the field explicitly on the serializer class:
#### Fields for model methods and properties. #### 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): class Invitation(models.Model):
created = models.DateTimeField() created = models.DateTimeField()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment