Wrong order of decorators
authorMagnus Hagander <magnus@hagander.net>
Thu, 2 Jan 2014 11:04:54 +0000 (12:04 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 2 Jan 2014 11:04:54 +0000 (12:04 +0100)
We really need to clean the code up so this does not matter...

pgweb/core/views.py

index c04dffdb59114d63404175a0cc25fe1d6f0778b1..4f9c8ed91021843b6d36bd9ba15bddab25879fcd 100644 (file)
@@ -173,8 +173,8 @@ _dynamic_cssmap = {
                         '../media/css/text.css',
                     '../media/css/docs.css'],
        }
-@cache(hours=6)
 @ssl_optional
+@cache(hours=6)
 def dynamic_css(request, css):
        if not _dynamic_cssmap.has_key(css):
                raise Http404('CSS not found')