Create a file like common/admins.py
from django.contrib import admin admin.site.disable_action('delete_selected')
Create a file like 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
Comments