mirror of
https://github.com/jazzband/django-constance.git
synced 2026-05-09 08:04:45 +00:00
commit
3bcef10480
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ class DatabaseBackend(Backend):
|
|||
self.autofill()
|
||||
value = self._cache.get(key)
|
||||
if value is None:
|
||||
match = self._model._default_manager.filter(key=key).first()
|
||||
match = self._model._default_manager.filter(key=key).only("value").first()
|
||||
if match:
|
||||
value = loads(match.value)
|
||||
if self._cache:
|
||||
|
|
|
|||
Loading…
Reference in a new issue