euscanwww: Corrected typo in favourite overlay

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-08-08 08:58:07 +02:00
parent d3de157a1b
commit 49f33796a7

View File

@ -522,7 +522,7 @@ def unfavourite_category(request, category):
@require_POST
@ajax_request
def favourite_overlay(request, overlay):
obj = Category.objects.get(name=overlay)
obj = Overlay.objects.get(name=overlay)
get_profile(request.user).overlays.add(obj)
return {"success": True}
@ -531,6 +531,6 @@ def favourite_overlay(request, overlay):
@require_POST
@ajax_request
def unfavourite_overlay(request, overlay):
obj = Category.objects.get(name=overlay)
obj = Overlay.objects.get(name=overlay)
get_profile(request.user).overlays.remove(obj)
return {"success": True}