Re: [SQLObject] Hi guys. Please, I need help
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Scott R. <sc...@to...> - 2004-04-21 18:43:03
|
On Wed, 2004-04-21 at 14:17, fingerclick wrote: > I=B4d like to put in one table two references do a same table. Does = > sqlObject allows that? Or may i build the sql in another way to > make that works? db_login has the names and db_request has 2 fields tha= t = > point to db_login( these fields are the persons id ).Thanks in advance.= Unless I misunderstand the problem, if you take the time to discover how to add one reference field, it is the exact same process to add another. class request(SQLObject): NewFile =3D BoolCol(default=3D1) DbRequestId =3D ForeignKey('Login') DbSourceId =3D ForeignKey('Login') ts =3D DateTimeCol() |