aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorTom Christie2013-04-25 12:47:34 +0100
committerTom Christie2013-04-25 12:47:34 +0100
commit95abe6e8445f59f9e52609b0c54d9276830dbfd3 (patch)
treeb74d076e5d4e84d0ed8ead11843ad5e52b9da335 /rest_framework/serializers.py
parentb94da2468cdda6b0ad491574d35097d0e336ea7f (diff)
downloaddjango-rest-framework-95abe6e8445f59f9e52609b0c54d9276830dbfd3.tar.bz2
Cleanup docstrings
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index b4327af1..fb438b12 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -1,3 +1,15 @@
+"""
+Serializers and ModelSerializers are similar to Forms and ModelForms.
+Unlike forms, they are not constrained to dealing with HTML output, and
+form encoded input.
+
+Serialization in REST framework is a two-phase process:
+
+1. Serializers marshal between complex types like model instances, and
+python primatives.
+2. The process of marshalling between python primatives and request and
+response content is handled by parsers and renderers.
+"""
from __future__ import unicode_literals
import copy
import datetime