Hello all.
I would like to know if it is possible to create a model class with a
default attribute derived from another.
An example:
class Post(SQLObject):
*title = StringCol()*
content = StringCol()
create_time = DateTimeCol(default=datetime.now)
tags = RelatedJoin('Tag')
author = ForeignKey('Author')
*slug = StringCol(default=title.replace(" ", "-"))*
Thank you very much.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss