From 9c1f8b6d8829002bc6ce9b9f950511e620a3fe3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 10 Jul 2024 13:58:54 +0200 Subject: [PATCH] f --- admin/c2cgeoportal_admin/views/layers_cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/c2cgeoportal_admin/views/layers_cog.py b/admin/c2cgeoportal_admin/views/layers_cog.py index a9ff84073ae..e7214d5e64a 100644 --- a/admin/c2cgeoportal_admin/views/layers_cog.py +++ b/admin/c2cgeoportal_admin/views/layers_cog.py @@ -117,7 +117,7 @@ def view(self) -> ObjectResponse: dbsession = self._request.dbsession default_cog = LayerCOG.get_default(dbsession) if default_cog: - return self.copy(default_cog, excludes=["name", "layer"]) + return self.copy(default_cog, excludes=["name", "url"]) return super().edit() @view_config(route_name="c2cgeoform_item", request_method="POST", renderer="../templates/edit.jinja2") # type: ignore[misc]