commit | 5271d6bbc679aec254df50b04f7c05d7a9e9bffa | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 08 00:34:24 2013 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 08 00:34:24 2013 -0400 |
tree | b5efd1957fb39f9f04058b576026e5d0501963a6 | |
parent | ed069acc2d3240ce9de99b128eab8b81f185a098 [diff] [blame] |
give filter default value
diff --git a/plstackapi/planetstack/api/roles.py b/plstackapi/planetstack/api/roles.py index c181adf..12a21b8 100644 --- a/plstackapi/planetstack/api/roles.py +++ b/plstackapi/planetstack/api/roles.py
@@ -25,7 +25,7 @@ role.delete() return 1 -def get_roles(auth, filter): +def get_roles(auth, filter={}): client = auth_check(auth) roles = Role.objects.filter(**filter) return roles