mirror of
https://github.com/yweber/lodel2.git
synced 2026-06-14 06:20:48 +02:00
EmClass: import EditorialModel module. use uid instead of id
This commit is contained in:
parent
e6f6720a57
commit
98b1dc455f
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ from Database import sqlutils
|
|||
import sqlalchemy as sql
|
||||
|
||||
import EditorialModel.fieldtypes as ftypes
|
||||
import EditorialModel
|
||||
|
||||
class EmClass(EmComponent):
|
||||
table = 'em_class'
|
||||
|
|
@ -73,7 +74,7 @@ class EmClass(EmComponent):
|
|||
def _fieldgroupsDb(self):
|
||||
dbe = self.__class__.getDbE()
|
||||
emfg = sql.Table(EditorialModel.fieldgroups.EmFieldGroup.table, sqlutils.meta(dbe))
|
||||
req = emfg.select().where(emfg.c.class_id == self.id)
|
||||
req = emfg.select().where(emfg.c.class_id == self.uid)
|
||||
|
||||
conn = dbe.connect()
|
||||
res = conn.execute(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue