aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorTom Christie2012-11-05 10:53:20 +0000
committerTom Christie2012-11-05 10:53:20 +0000
commitb7b942c5991e677e7df621c00befb075d06edd61 (patch)
tree886d1657a3e8b014fef0cbae055d7f74cd46dbda /rest_framework/serializers.py
parent5b397e50ddb999f85949a7359d0a26c3531c78a9 (diff)
downloaddjango-rest-framework-b7b942c5991e677e7df621c00befb075d06edd61.tar.bz2
Swap position of `instance` and `data` keyword arguments.
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 3d134a74..92b179fa 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -82,7 +82,7 @@ class BaseSerializer(Field):
_options_class = SerializerOptions
_dict_class = SortedDictWithMetadata # Set to unsorted dict for backwards compatability with unsorted implementations.
- def __init__(self, data=None, instance=None, context=None, **kwargs):
+ def __init__(self, instance=None, data=None, context=None, **kwargs):
super(BaseSerializer, self).__init__(**kwargs)
self.fields = copy.deepcopy(self.base_fields)
self.opts = self._options_class(self.Meta)