From 303662fb27ee93ae1d7c1854b5048303057de9be Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 11 Jan 2014 09:34:54 +0000 Subject: [PATCH] dont include annotations on non js page on 0xdb, fixes #1875 --- pandora/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 5933ffb55..fff30e229 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -1234,7 +1234,7 @@ def item(request, id): clips = [] clip = {'in': 0, 'annotations': []} #logged in users should have javascript. not adding annotations makes load faster - if request.user.is_anonymous(): + if not settings.USE_IMDB and request.user.is_anonymous(): for a in item.annotations.filter( layer__in=models.Annotation.public_layers()).order_by('start', 'end', 'sortvalue'): if clip['in'] < a.start: