From 8c113d9a193d288001473fd3f6fc030457878944 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 5 May 2023 22:13:10 +0200 Subject: [PATCH] Rename MapStar view in ToggleMapStarStatus --- umap/urls.py | 2 +- umap/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/urls.py b/umap/urls.py index 390912b5..58beb6a4 100644 --- a/umap/urls.py +++ b/umap/urls.py @@ -97,7 +97,7 @@ i18n_urls += decorated_patterns( [login_required], re_path( r'^map/(?P[\d]+)/star/$', - views.MapStar.as_view(), + views.ToggleMapStarStatus.as_view(), name='map_star' ), ) diff --git a/umap/views.py b/umap/views.py index 49a98f5f..690525dd 100644 --- a/umap/views.py +++ b/umap/views.py @@ -665,7 +665,7 @@ class MapClone(PermissionsMixin, View): return response -class MapStar(View): +class ToggleMapStarStatus(View): def post(self, *args, **kwargs): map_inst = get_object_or_404(Map, pk=kwargs['map_id'])