aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2013-07-04 13:49:28 +0100
committerTom Christie2013-07-04 13:49:28 +0100
commita890116ab31e57af3bd1382c1f17259fa368f988 (patch)
treebcdb35345f64306c54faf3f4eb73e2e51dcbb0c7
parentb88bdfb9a5b82fce89a0e8f263e92e0817c9241d (diff)
downloaddjango-rest-framework-a890116ab31e57af3bd1382c1f17259fa368f988.tar.bz2
Minor docs addition
-rw-r--r--docs/api-guide/serializers.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md
index dc16ba83..8e9de10e 100644
--- a/docs/api-guide/serializers.md
+++ b/docs/api-guide/serializers.md
@@ -427,6 +427,8 @@ Doing so should be considered advanced usage, and will only be needed if you hav
Once a serializer has been initialized, the dictionary of fields that are set on the serializer may be accessed using the `.fields` attribute. Accessing and modifying this attribute allows you to dynamically modify the serializer.
+Modifying the `fields` argument directly allows you to do interesting things such as changing the arguments on serializer fields at runtime, rather than at the point of declaring the serializer.
+
### Example
For example, if you wanted to be able to set which fields should be used by a serializer at the point of initializing it, you could create a serializer class like so: