2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

Remove unneeded AjaxView usage (#8461)

* remove unneeded AjaxView usage

* add schema

* bump schema version

* make schema more acurate

* exclude not found view

* make script also axept base api
This commit is contained in:
Matthias Mair
2024-11-10 23:11:20 +01:00
committed by GitHub
parent 5464bc5a8a
commit 9cd0394dc4
3 changed files with 49 additions and 6 deletions

View File

@ -44,7 +44,8 @@ def top_level_path(path: str) -> str:
path = path.strip()
key = path.split('/')[1]
parts = path.split('/')
key = parts[1] if len(parts) > 1 else parts[0]
if key in SPECIAL_PATHS:
return key