2007/04/15

Django开发版本有了一些小变化

http://www.djangoproject.com/weblog/2007/apr/06/changes/
Examples of some of these changes are:
Removing the auto_now and auto_now_add options in Django models.
Finishing and merging the "newforms-admin" branch, which changes the way admin options are specified (and gives you a lot more flexibility).
Removing the LazyDate shortcut.
Renaming django.contrib.localflavor.usa to django.contrib.localflavor.us.
The biggest change is probably the newforms-admin functionality.

Django开发版本有了一些小变化
auto_now(不论何种条件若更新则更新为当前时间值), auto_now_add(仅在产生新记录时添加当前时间值) 这是DateTimeField的两个对象,被移除了,不过认为auto_now_add还有一些保留的必要,这样在具体写代码时,就可以不考虑时间值这个东西,感觉还是蛮好的东西

LazyDate 不记得为何物了
newforms-admin 最怕自动化的东西

没有评论: