We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3652b commit 55a8e42Copy full SHA for 55a8e42
django_remote_forms/utils.py
@@ -1,9 +1,13 @@
1
+from django.http import QueryDict
2
from django.utils.functional import Promise
3
from django.utils.encoding import force_text
4
5
6
def resolve_promise(o):
- if isinstance(o, dict):
7
+ if isinstance(o, QueryDict):
8
+ for k, v in o.lists():
9
+ o[k] = resolve_promise(v)
10
+ elif isinstance(o, dict):
11
for k, v in o.items():
12
o[k] = resolve_promise(v)
13
elif isinstance(o, (list, tuple)):
0 commit comments