mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
add doc
This commit is contained in:
@ -41,6 +41,7 @@ class CompanyAdmin(ImportExportModelAdmin):
|
||||
exclude = ('is_deleted',)
|
||||
|
||||
def has_delete_permission(self, request, obj=None):
|
||||
"""Magic objects are not allowd to be deleted"""
|
||||
if obj and obj.is_deleted:
|
||||
return False
|
||||
return True
|
||||
|
Reference in New Issue
Block a user