admin.ModelAdmin.has_delete_permission()

ModelAdmin.has_delete_permission(request, obj=None)

Should return True if deleting obj is permitted, False otherwise. If obj is None, should return True or False to indicate whether deleting objects of this type is permitted in general (e.g., False will be interpreted as meaning that the current user is not permitted to delete any object of this type).

doc_Django
2016-10-09 18:33:48
Comments
Leave a Comment

Please login to continue.