layerindex-web/layerindex
Robert Yang 2d7906ff3b admin.py: Remove has_delete_permission()
The following commit has added on_delete=models.CASCADE to the ForeignKey:

===
commit 2d526f9b0d
Author: Amber Elliot <amber.n.elliot@intel.com>
Date:   Thu Jun 25 15:57:34 2020 -0700

    Updating models and imports for Django 2.2 upgrade.
===

The on_delete=models.CASCADE will remove the objects which reference the
removed objects, so there will be errors when removing a LayerBranch
with admin permissions:

===
Cannot delete layer branch
Deleting the selected layer branch would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:

Append
distro
===

This is because has_delete_permission() always return False, remove it to use
Django's implementation to fix the problem.

Minor rewording.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2022-12-16 08:59:37 -08:00
..
migrations layerindex/models.py: add Inactive-Upstream 2022-04-18 12:56:51 -07:00
static Upgrade Chart.js to 2.9.3 2019-12-09 11:39:47 +13:00
templatetags Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
tools layerindex/*: make all shebangs python3 2022-01-13 20:58:28 -08:00
__init__.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
admin.py admin.py: Remove has_delete_permission() 2022-12-16 08:59:37 -08:00
auth_forms.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
auth_views.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
bulkchange.py layerindex/*: make all shebangs python3 2022-01-13 20:58:28 -08:00
context_processors.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
forms.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
layerconfparse.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
middleware.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
models.py layerindex/models.py: add Inactive-Upstream 2022-04-18 12:56:51 -07:00
querysethelper.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
recipedesc.py recipe{desc,parse}.py: BB_ENV_PASSTHROUGH_ADDITIONS 2022-04-28 08:15:22 -07:00
recipeparse.py recipe{desc,parse}.py: BB_ENV_PASSTHROUGH_ADDITIONS 2022-04-28 08:15:22 -07:00
restperm.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
restviews.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
securityquestions.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
tasks.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
update_layer.py layerindex/*: make all shebangs python3 2022-01-13 20:58:28 -08:00
update.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
urls_branch.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
urls.py layerindex/urls.py: fix about url pattern 2022-04-18 12:56:51 -07:00
utils.py utils.py: Use get_layer_var() to get BBFILE_COLLECTIONS 2022-12-16 08:59:37 -08:00
views.py Report charset for text & CSV views 2021-10-20 11:07:46 +13:00