]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/settings/base.py
Fixes OSQA 337, We show too many tags on the /questions/ url, by adding a couple...
[osqa.git] / forum / settings / base.py
index cdc80b0214d08a711b74988f69add029c3506669..ae36e25c4a12ea568545d67c81a1188c2e5b4212 100644 (file)
@@ -6,12 +6,13 @@ import logging
 TMP_MINICACHE_SECONDS = 5
 
 class SettingSet(list):
-    def __init__(self, name, title, description, weight=1000, markdown=False):
+    def __init__(self, name, title, description, weight=1000, markdown=False, can_preview=False):
         self.name = name
         self.title = title
         self.description = description
         self.weight = weight
         self.markdown = markdown
+        self.can_preview = can_preview
 
 
 class BaseSetting(object):
@@ -30,6 +31,8 @@ class BaseSetting(object):
         self._temp = None
 
         if set is not None:
+            self.set = set
+            
             if not set.name in Setting.sets:
                 Setting.sets[set.name] = set