aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
authorTom Christie2012-10-26 05:22:34 -0700
committerTom Christie2012-10-26 05:22:34 -0700
commit7cdedc0f71f362895b71c8075d5e853e9685a9f9 (patch)
tree360ba91c91577f09f8b7e3f3b24d8e80f689fc46 /rest_framework/fields.py
parent365d20652eb7b56c9d1d4b63b52c056f03cab514 (diff)
parent67f1265e493adc35239d90aeb3bfeb8492fbd741 (diff)
downloaddjango-rest-framework-7cdedc0f71f362895b71c8075d5e853e9685a9f9.tar.bz2
Merge pull request #321 from tomchristie/pastebin_tutorial
Tweaks and fixes in order to support the pastebin tutorial
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 6ed37823..85e6ee31 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -258,7 +258,7 @@ class ManyRelatedMixin(object):
def field_from_native(self, data, field_name, into):
if self.readonly:
return
-
+
try:
# Form data
value = data.getlist(self.source or field_name)