From d9be546c9f29a1bf19a35e384b490a9f8bf305e9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 7 Apr 2019 11:51:12 +0200 Subject: [PATCH] Use autocompletefields for owner and editors in admin --- umap/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/admin.py b/umap/admin.py index c1e3d159..17a94bc2 100644 --- a/umap/admin.py +++ b/umap/admin.py @@ -9,6 +9,7 @@ class TileLayerAdmin(admin.ModelAdmin): class MapAdmin(admin.OSMGeoAdmin): search_fields = ("name",) + autocomplete_fields = ("owner", "editors") admin.site.register(Map, MapAdmin)