Rename MapStar view in ToggleMapStarStatus
This commit is contained in:
parent
1c5ffd8136
commit
8c113d9a19
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ i18n_urls += decorated_patterns(
|
||||||
[login_required],
|
[login_required],
|
||||||
re_path(
|
re_path(
|
||||||
r'^map/(?P<map_id>[\d]+)/star/$',
|
r'^map/(?P<map_id>[\d]+)/star/$',
|
||||||
views.MapStar.as_view(),
|
views.ToggleMapStarStatus.as_view(),
|
||||||
name='map_star'
|
name='map_star'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -665,7 +665,7 @@ class MapClone(PermissionsMixin, View):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
class MapStar(View):
|
class ToggleMapStarStatus(View):
|
||||||
|
|
||||||
def post(self, *args, **kwargs):
|
def post(self, *args, **kwargs):
|
||||||
map_inst = get_object_or_404(Map, pk=kwargs['map_id'])
|
map_inst = get_object_or_404(Map, pk=kwargs['map_id'])
|
||||||
|
|
Loading…
Reference in a new issue