Destale c.site on subreddit settings page.

This should fix funkiness with changed settings getting "lost" after
the redirect/refresh catches a stale-cached version of the settings.
This commit is contained in:
Neil Williams
2012-05-21 18:32:43 -07:00
parent 5db25a86b5
commit bac15c68e4

View File

@@ -541,6 +541,7 @@ class FrontController(RedditController):
if created == 'true':
pane.append(InfoBar(message = strings.sr_created))
c.allow_styles = True
c.site = Subreddit._byID(c.site._id, data=True, stale=False)
pane.append(CreateSubreddit(site = c.site))
elif location == 'moderators':
pane = ModList(editable = is_moderator)