mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add doc
This commit is contained in:
parent
1d24f3586d
commit
c278a5397f
@ -41,6 +41,7 @@ class CompanyAdmin(ImportExportModelAdmin):
|
|||||||
exclude = ('is_deleted',)
|
exclude = ('is_deleted',)
|
||||||
|
|
||||||
def has_delete_permission(self, request, obj=None):
|
def has_delete_permission(self, request, obj=None):
|
||||||
|
"""Magic objects are not allowd to be deleted"""
|
||||||
if obj and obj.is_deleted:
|
if obj and obj.is_deleted:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user