Update umap/views.py

Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
This commit is contained in:
Yohan Boniface 2023-05-05 22:10:25 +02:00 committed by Yohan Boniface
parent 37b4d05da5
commit 1c5ffd8136

View file

@ -674,7 +674,7 @@ class MapStar(View):
qs.delete()
status = False
else:
Star(map=map_inst, by=self.request.user).save()
Star.objects.create(map=map_inst, by=self.request.user)
status = True
return simple_json_response(starred=status)