mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +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