django后台禁止添加记录功能

class MyAdmin(admin.ModelAdmin):
     *def has_add_permission(self, request):
        return False*

猜你喜欢

转载自blog.csdn.net/qq_40157234/article/details/80581539
今日推荐