Rename MapStar view in ToggleMapStarStatus

This commit is contained in:
Yohan Boniface 2023-05-05 22:13:10 +02:00
parent 1c5ffd8136
commit 8c113d9a19
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ i18n_urls += decorated_patterns(
[login_required],
re_path(
r'^map/(?P<map_id>[\d]+)/star/$',
views.MapStar.as_view(),
views.ToggleMapStarStatus.as_view(),
name='map_star'
),
)

View file

@ -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'])