]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/settings/base.py
Improves the pagination, adds a new sorting method for searches. Fixes some issues...
[osqa.git] / forum / settings / base.py
index ae36e25c4a12ea568545d67c81a1188c2e5b4212..7436f46593b4e2813f292b91662ed21323a15a9b 100644 (file)
@@ -60,6 +60,7 @@ class BaseSetting(object):
             return v
         except KeyValue.DoesNotExist:
             self._temp = (self.default, datetime.now() + timedelta(seconds=TMP_MINICACHE_SECONDS))
+            self.save(self.default)
         except Exception, e:
             logging.error("Error retrieving setting from database (%s): %s" % (self.name, str(e)))