diff --git a/InvenTree/company/admin.py b/InvenTree/company/admin.py index 6412aff934..af767f3fdc 100644 --- a/InvenTree/company/admin.py +++ b/InvenTree/company/admin.py @@ -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