Skip to content

Commit

Permalink
Add lost view
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 31, 2022
1 parent 6a3caa5 commit ccfa6fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions admin/c2cgeoportal_admin/views/ogc_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ def delete(self):
cache_invalidate_cb()
return result

@view_config(
route_name="c2cgeoform_item_duplicate", request_method="GET", renderer="../templates/edit.jinja2"
)
def duplicate(self):
result: Dict[str, Any] = super().duplicate()
self._update_cache(self._get_object())
return result

def _update_cache(self, ogc_server: OGCServer) -> None:
try:
ogc_server_id = ogc_server.id
Expand Down

0 comments on commit ccfa6fb

Please sign in to comment.