fix session.remove
This commit is contained in:
parent
02e7e30728
commit
6372edad04
|
@ -240,6 +240,7 @@ class Session(object):
|
|||
def remove(self, table=None, rowid=None, row=None):
|
||||
if row:
|
||||
rowid = row.id
|
||||
table = row._table_name
|
||||
|
||||
if not rowid or not table:
|
||||
raise ValueError('Missing row ID or table')
|
||||
|
|
Loading…
Reference in a new issue