WiserTogether / django-remote-forms

A platform independent django form serializer
MIT License
221 stars 113 forks source link

Typo in RemoteMultiWidget #17

Open ghost opened 10 years ago

ghost commented 10 years ago

Apparently, there's a typo in line as_dict() method of RemoteMultiWidget class in widgets.py, missing an argument to the append() call. Will attach the patch in a minute.

ghost commented 10 years ago
--- a/django_remote_forms/widgets.py
+++ b/django_remote_forms/widgets.py
@@ -254,7 +254,7 @@ class RemoteMultiWidget(RemoteWidget):
         widget_list = []
         for widget in self.widget.widgets:
             # Fetch remote widget and convert to dict
-            widget_list.append()
+            widget_list.append(widget.as_dict())

         widget_dict['widgets'] = widget_list