From 5309ad5f8afdeeb80b817e7452b5fe0831b4b036 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Tue, 31 Oct 2023 17:47:28 +0100 Subject: [PATCH] Bugfix the "parent" field on location admin page --- README.md | 1 + inventory/admin/location.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 492e5bc..caa0244 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,7 @@ please use YunoHost ;) * [**dev**](https://github.com/jedie/PyInventory/compare/v0.19.2...main) + * Bugfix the "parent" field on location admin page * tbc * [v0.19.2 - 17.08.2023](https://github.com/jedie/PyInventory/compare/v0.19.1...v0.19.2) * Bugfix packaging and missing "requests" dependencies diff --git a/inventory/admin/location.py b/inventory/admin/location.py index 1448144..fbf7976 100644 --- a/inventory/admin/location.py +++ b/inventory/admin/location.py @@ -70,7 +70,6 @@ class LocationModelAdmin(ImportExportMixin, BaseUserAdmin): ), (_('Items in this Location'), {'fields': ('items',)}), ) - autocomplete_fields = ('parent',) readonly_fields = ('id', 'create_dt', 'update_dt', 'user', 'item_count', 'items') list_display_links = ('location',) list_filter = (LimitTreeDepthListFilter,)