Filters on kwargs for find_object
This commit is contained in:
parent
6591785a10
commit
74b99c4a8d
5 changed files with 18 additions and 11 deletions
|
|
@ -52,7 +52,7 @@ class PoivyBackend(BaseBackend, ICapBill):
|
|||
return self.browser.get_subscription_list()
|
||||
|
||||
def get_subscription(self, _id):
|
||||
return find_object(self.iter_subscription(), _id, error=SubscriptionNotFound)
|
||||
return find_object(self.iter_subscription(), id=_id, error=SubscriptionNotFound)
|
||||
|
||||
def iter_bills_history(self, subscription):
|
||||
# Try if we have a real subscription before to load the history
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue