common/admins.py とか作って
from django.contrib import admin admin.site.disable_action('delete_selected')
common/admins.py とか作って
from django.contrib import admin def has_delete_permission(self, request, obj=None): return False admin.ModelAdmin.has_delete_permission = has_delete_permission
コメント