mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
chore: always return user infos on map save
This commit is contained in:
parent
13a7a2257d
commit
73c83cfa86
1 changed files with 2 additions and 1 deletions
|
@ -910,7 +910,7 @@ def get_websocket_auth_token(request, map_id, map_inst):
|
||||||
return simple_json_response(token=signed_token)
|
return simple_json_response(token=signed_token)
|
||||||
|
|
||||||
|
|
||||||
class MapUpdate(FormLessEditMixin, PermissionsMixin, UpdateView):
|
class MapUpdate(FormLessEditMixin, PermissionsMixin, SessionMixin, UpdateView):
|
||||||
model = Map
|
model = Map
|
||||||
form_class = MapSettingsForm
|
form_class = MapSettingsForm
|
||||||
pk_url_kwarg = "map_id"
|
pk_url_kwarg = "map_id"
|
||||||
|
@ -922,6 +922,7 @@ class MapUpdate(FormLessEditMixin, PermissionsMixin, UpdateView):
|
||||||
id=self.object.pk,
|
id=self.object.pk,
|
||||||
url=self.object.get_absolute_url(),
|
url=self.object.get_absolute_url(),
|
||||||
permissions=self.get_permissions(),
|
permissions=self.get_permissions(),
|
||||||
|
user=self.get_user_data(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue