Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Update cms_toolbars.py #536

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion aldryn_people/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ def get_obj_from_request(model, request,
return None


def get_admin_url(action, action_args=[], **url_args):
def get_admin_url(action, action_args=None, **url_args):
"""
Convenience method for constructing admin-urls with GET parameters.
"""
if action_args == None:
action_args = []
base_url = admin_reverse(action, args=action_args)
# Converts [{key: value}, …] => ["key=value", …]
url_arg_list = sorted(iteritems(url_args))
Expand Down