diff --git a/constance/backends/database/__init__.py b/constance/backends/database/__init__.py index 1cf314e..01cf260 100644 --- a/constance/backends/database/__init__.py +++ b/constance/backends/database/__init__.py @@ -61,6 +61,9 @@ class DatabaseBackend(Backend): key = self.add_prefix(key) if self._cache: value = self._cache.get(key) + if value is None: + self.autofill() + value = self._cache.get(key) else: value = None if value is None: