aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorTom Christie2014-11-07 10:51:08 +0000
committerTom Christie2014-11-07 10:51:08 +0000
commite399140031a0738a054f5f07e42ef7208f9e45f4 (patch)
tree2624a1672974f9dfc11f4f6b9a699bbea6a0fecb /rest_framework/serializers.py
parent555930ee81c21f02fb7f44119a0a35dc4f7c048a (diff)
downloaddjango-rest-framework-e399140031a0738a054f5f07e42ef7208f9e45f4.tar.bz2
Minor tweaks
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 68ea27ab..b00f9b7a 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -393,6 +393,9 @@ class ListSerializer(BaseSerializer):
return ReturnList(serializer=self)
def get_value(self, dictionary):
+ """
+ Given the input dictionary, return the field value.
+ """
# We override the default field access in order to support
# lists in HTML forms.
if html.is_html_input(dictionary):
@@ -442,6 +445,9 @@ class ListSerializer(BaseSerializer):
)
def save(self, **kwargs):
+ """
+ Save and return a list of object instances.
+ """
assert self.instance is None, (
"Serializers do not support multiple update by default, only "
"multiple create. For updates it is unclear how to deal with "