Add missing * to *kw to make it pass named arguments instead of positional
This commit is contained in:
1 parent
f7c044495a
commit
e7937f2944
1 file changed
+2
-2
+2
-2
@@ -70,7 +70,7 @@ class CrudBackend(backend.Backend):
|
||||
Base class defining generic CRUD backend API.
|
||||
"""
|
||||
|
||||
def create(self, *kw):
|
||||
def create(self, **kw):
|
||||
"""
|
||||
Create a new entry.
|
||||
|
||||
@@ -102,7 +102,7 @@ class CrudBackend(backend.Backend):
|
||||
"""
|
||||
raise NotImplementedError('%s.retrieve()' % self.name)
|
||||
|
||||
def update(self, primary_key, *kw):
|
||||
def update(self, primary_key, **kw):
|
||||
"""
|
||||
Update an existing entry.
|
||||
|
||||
|
||||
Reference in new issue
Block a user