diff options
| author | Tom Christie | 2012-11-05 10:53:20 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-05 10:53:20 +0000 |
| commit | b7b942c5991e677e7df621c00befb075d06edd61 (patch) | |
| tree | 886d1657a3e8b014fef0cbae055d7f74cd46dbda /rest_framework/serializers.py | |
| parent | 5b397e50ddb999f85949a7359d0a26c3531c78a9 (diff) | |
| download | django-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.py | 2 |
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) |
