Update umap/views.py
Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
This commit is contained in:
parent
37b4d05da5
commit
1c5ffd8136
1 changed files with 1 additions and 1 deletions
|
@ -674,7 +674,7 @@ class MapStar(View):
|
||||||
qs.delete()
|
qs.delete()
|
||||||
status = False
|
status = False
|
||||||
else:
|
else:
|
||||||
Star(map=map_inst, by=self.request.user).save()
|
Star.objects.create(map=map_inst, by=self.request.user)
|
||||||
status = True
|
status = True
|
||||||
return simple_json_response(starred=status)
|
return simple_json_response(starred=status)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue