From e97cafabb6864b03e469a9cd1237630ff696178e Mon Sep 17 00:00:00 2001 From: Craig Blaszczyk Date: Fri, 2 Sep 2011 11:57:48 +0100 Subject: [PATCH] update to pass data and files as kwargs --- djangorestframework/resources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/djangorestframework/resources.py b/djangorestframework/resources.py index badec8104..8ac31545a 100644 --- a/djangorestframework/resources.py +++ b/djangorestframework/resources.py @@ -212,7 +212,7 @@ class FormResource(Resource): return None if data is not None or files is not None: - form_ = form(data, files) + form_ = form(data=data, files=files) else: form_ = form() @@ -338,9 +338,9 @@ class ModelResource(FormResource): if data is not None or files is not None: if issubclass(form, forms.ModelForm) and hasattr(self.view, 'model_instance'): # Bound to an existing model instance - form_ = form(data, files, instance=self.view.model_instance) + form_ = form(data=data, files=files, instance=self.view.model_instance) else: - form_ = form(data, files) + form_ = form(data=data, files=files) else: form_ = form()