Groups
Groups
Sign in
Groups
Groups
bamboo-cn
Conversations
About
Send feedback
Help
关于任意模型日期字段的建议
1 view
Skip to first unread message
Tang Daogang
unread,
Apr 14, 2012, 9:24:45 PM
4/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bamb...@googlegroups.com
我想了一下,
Bamboo中的任意模型,都可以添加2个字段;
created_time
lastmodified_time
这个可以通过直接在Model中写明,且使用__decorator来实现。
而上次添加的
timestamp
字段,意义不够明晰。
我建议,换成这两个新字段名称。
实际上,对数据库做的任何操作,数据库都有日志记录的。包括上面的
created_time
lastmodified_time
还有
lastvisited_time
都有记录。
但是对bamboo工程来说,没有自己记录方便。考虑到效率问题,lastvisited_time不在bamboo中记录。
--
Nothing is impossible.
Tang Daogang
unread,
Apr 15, 2012, 9:23:01 AM
4/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bamb...@googlegroups.com
果断添加了哦,大家有意见木?
2012/4/15 Tang Daogang
<
daoga...@gmail.com
>
--
Nothing is impossible.
Tang Daogang
unread,
Apr 15, 2012, 9:23:13 AM
4/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bamb...@googlegroups.com
已添加。
2012/4/15 Tang Daogang
<
daoga...@gmail.com
>
--
Nothing is impossible.
Reply all
Reply to author
Forward
0 new messages