mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Fixed mutating issues in python 3
This commit is contained in:
parent
7bc5f1e4a3
commit
ce12c0bbd9
|
@ -112,8 +112,8 @@ def distribute_links(obj, parent=None, parent_key='root'):
|
||||||
key = get_unique_key(parent, parent_key)
|
key = get_unique_key(parent, parent_key)
|
||||||
parent[key] = link
|
parent[key] = link
|
||||||
|
|
||||||
for key, value in obj.items():
|
for key in list(obj.keys()):
|
||||||
distribute_links(value, obj, key)
|
distribute_links(obj[key], obj, key)
|
||||||
|
|
||||||
|
|
||||||
def is_custom_action(action):
|
def is_custom_action(action):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user