crud
This commit is contained in:
parent
45b6389fa0
commit
5534fda8bf
@ -197,6 +197,7 @@ class CRUD(object):
|
||||
|
||||
pk = await self.primaryKey()
|
||||
k = pk[0]['field_name']
|
||||
if not data.get(k):
|
||||
v = getID()
|
||||
data[k] = v
|
||||
data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeAdd',data)
|
||||
|
Loading…
Reference in New Issue
Block a user