From ae9a4290b8264f18028a02099250c9430dbaa5b2 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Mon, 21 Jan 2019 21:05:04 +0100 Subject: [PATCH] Removed incorrect DictField docstring. Closes #6363. --- rest_framework/fields.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 70c210c16..562e52b22 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -1725,9 +1725,6 @@ class DictField(Field): return self.run_child_validation(data) def to_representation(self, value): - """ - List of object instances -> List of dicts of primitive datatypes. - """ return { six.text_type(key): self.child.to_representation(val) if val is not None else None for key, val in value.items()