X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dbb1ae2cf25105f7a3831961b08386a1326baef8..b8e94e0e7cc7576cbaacd3c737d6ffca6b12db53:/apps/stats/utils.py?ds=inline diff --git a/apps/stats/utils.py b/apps/stats/utils.py index 543f86341..474d1b59a 100644 --- a/apps/stats/utils.py +++ b/apps/stats/utils.py @@ -47,7 +47,8 @@ def piwik_track(klass_or_method): call_func = klass_or_method def wrap(self, request, *args, **kw): - track_request.delay(piwik_url(request)) + if getattr(request, 'piwik_track', True): + track_request.delay(piwik_url(request)) return call_func(self, request, *args, **kw) # and wrap it