Skip to content

Commit 2bfd26e

Browse files
committed
fix actions
1 parent 0234782 commit 2bfd26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def delete(self, *args):
397397
return self._delete(i.links.self)
398398

399399
def action(self, obj, action_name, *args, **kw):
400-
url = obj.actions[action_name]
400+
url = getattr(obj.actions, action_name)
401401
return self._post(url, data=self._to_dict(*args, **kw))
402402

403403
def _is_list(self, obj):

0 commit comments

Comments
 (0)