开发者

Most succinct way of prepopulating the author in django 1.2 admin?

A previous 开发者_JS百科answer points to http://code.djangoproject.com/wiki/CookBookNewformsAdminAndUser

I'm wondering if it's really necessary to define both save_model and save_formset methods in Django 1.2 in order to prepopulate the author?


If you are working with inlines you need to override save_formset for you inline models as well, for working with the normal admin save_model should be sufficent!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜