mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Update html.py
This commit is contained in:
parent
771e2ef167
commit
38d9928d09
|
@ -69,8 +69,7 @@ def parse_html_list(dictionary, prefix='', default=None):
|
|||
"""
|
||||
if isinstance(dictionary, (list, tuple)):
|
||||
dictionary = str(dictionary)[1:-1]
|
||||
dictionary = '{' + dictionary[1:-1].replace('}', '').replace('{', '') + '}'
|
||||
dictionary = eval(dictionary)
|
||||
dictionary = eval('{' + dictionary[1:-1].replace('}', '').replace('{', '') + '}')
|
||||
|
||||
ret = {}
|
||||
regex = re.compile(r'^%s\[([0-9]+)\](.*)$' % re.escape(prefix))
|
||||
|
|
Loading…
Reference in New Issue
Block a user