diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-14 10:41:32 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-14 10:41:32 +0200 |
| commit | 4d3163a588882ed0c54217fb256556be93f69d1f (patch) | |
| tree | 971449842fecdf69df8b4ffece6558b258cff776 /ishtar_common/admin.py | |
| parent | 47c4fbec8a17b339de00d33ac5cedaf846b71ba2 (diff) | |
| download | Ishtar-4d3163a588882ed0c54217fb256556be93f69d1f.tar.bz2 Ishtar-4d3163a588882ed0c54217fb256556be93f69d1f.zip | |
🚑️ admin imports: fix permissions
Diffstat (limited to 'ishtar_common/admin.py')
| -rw-r--r-- | ishtar_common/admin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/admin.py b/ishtar_common/admin.py index 8f9d4d0a9..691525c10 100644 --- a/ishtar_common/admin.py +++ b/ishtar_common/admin.py @@ -1135,7 +1135,7 @@ class ImportActionAdmin(admin.ModelAdmin): def get_urls(self): urls = super(ImportActionAdmin, self).get_urls() my_urls = [ - re_path(r"^import-from-csv/$", self.import_generic), + re_path(r"^import-from-csv/$", self.admin_site.admin_view(self.import_generic)), ] return my_urls + urls @@ -1293,7 +1293,7 @@ class ImportGEOJSONActionAdmin(object): def get_urls(self): urls = super(ImportGEOJSONActionAdmin, self).get_urls() my_urls = [ - re_path(r"^import-from-geojson/$", self.import_geojson), + re_path(r"^import-from-geojson/$", self.admin_site.admin_view(self.import_geojson)), ] return my_urls + urls @@ -1519,7 +1519,7 @@ class ImportJSONActionAdmin(admin.ModelAdmin): def get_urls(self): urls = super(ImportJSONActionAdmin, self).get_urls() my_urls = [ - re_path(r"^import-from-json/$", self.import_json), + re_path(r"^import-from-json/$", self.admin_site.admin_view(self.import_json)), ] return my_urls + urls @@ -1788,7 +1788,7 @@ class CreateDepartmentActionAdmin(GeneralTypeAdmin): def get_urls(self): urls = super(CreateDepartmentActionAdmin, self).get_urls() my_urls = [ - re_path(r"^create-department/$", self.create_area), + re_path(r"^create-department/$", self.admin_site.admin_view(self.create_area)), ] return my_urls + urls |
