Commit 7b4602bb authored by fred's avatar fred

update middleware to inherit from legacy class

parent fec07f22
from django.utils.deprecation import MiddlewareMixin
import re
class StripPiwikCookieMiddleware(object):
class StripPiwikCookieMiddleware(MiddlewareMixin):
# idea from http://djangosnippets.org/snippets/1772/
strip_re = re.compile(r'(_pk_[a-z0-9\.]+=.+?(?:; |$))')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment