开发者

Django Custom Admin

开发者 https://www.devze.com 2022-12-24 20:42 出处:网络
Currently I have an app with a save method in its models.py . So I would like to 开发者_Python百科change this so the models does not do the save() method, but rather have a separate view that will do

Currently I have an app with a save method in its models.py . So I would like to 开发者_Python百科change this so the models does not do the save() method, but rather have a separate view that will do this in die admin site.

Can you please direct me in the correct direction?

Thank you


Override save_model in your ModelAdmin class. The (bare) original is in django.contrib.admin.options.

0

精彩评论

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