From 4358b3c11c1296b36369e8dba8d254489ba2f53e Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Thu, 14 Mar 2013 00:30:53 -0700 Subject: [PATCH] Proxy stylesheet hash in DefaultSR for front page stylin'. Without a truthy stylesheet_hash property, the reddit.html template will not include the stylesheet. --- r2/r2/models/subreddit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r2/r2/models/subreddit.py b/r2/r2/models/subreddit.py index 3a439f7f3..77d18c95d 100644 --- a/r2/r2/models/subreddit.py +++ b/r2/r2/models/subreddit.py @@ -1151,6 +1151,10 @@ class DefaultSR(_DefaultSR): def stylesheet_contents(self): return self._base.stylesheet_contents if self._base else "" + @property + def stylesheet_hash(self): + return self._base.stylesheet_hash if self._base else "" + @property def sponsorship_url(self): return self._base.sponsorship_url if self._base else ""