class MyAdmin(admin.ModelAdmin): *def has_add_permission(self, request): return False*
django后台禁止添加记录功能
猜你喜欢
转载自blog.csdn.net/qq_40157234/article/details/80581539
今日推荐
周排行