euscanwww: Corrected typo in favourite overlay
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
d3de157a1b
commit
49f33796a7
@ -522,7 +522,7 @@ def unfavourite_category(request, category):
|
|||||||
@require_POST
|
@require_POST
|
||||||
@ajax_request
|
@ajax_request
|
||||||
def favourite_overlay(request, overlay):
|
def favourite_overlay(request, overlay):
|
||||||
obj = Category.objects.get(name=overlay)
|
obj = Overlay.objects.get(name=overlay)
|
||||||
get_profile(request.user).overlays.add(obj)
|
get_profile(request.user).overlays.add(obj)
|
||||||
return {"success": True}
|
return {"success": True}
|
||||||
|
|
||||||
@ -531,6 +531,6 @@ def favourite_overlay(request, overlay):
|
|||||||
@require_POST
|
@require_POST
|
||||||
@ajax_request
|
@ajax_request
|
||||||
def unfavourite_overlay(request, overlay):
|
def unfavourite_overlay(request, overlay):
|
||||||
obj = Category.objects.get(name=overlay)
|
obj = Overlay.objects.get(name=overlay)
|
||||||
get_profile(request.user).overlays.remove(obj)
|
get_profile(request.user).overlays.remove(obj)
|
||||||
return {"success": True}
|
return {"success": True}
|
||||||
|
Loading…
Reference in New Issue
Block a user