mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Use dict comprehension; available since Python 2.7 (#217)
This commit is contained in:
parent
8b8b6569d9
commit
9725bb2a94
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class DatabaseBackend(Backend):
|
|||
def mget(self, keys):
|
||||
if not keys:
|
||||
return
|
||||
keys = dict((self.add_prefix(key), key) for key in keys)
|
||||
keys = {self.add_prefix(key): key for key in keys}
|
||||
stored = self._model._default_manager.filter(key__in=keys)
|
||||
for const in stored:
|
||||
yield keys[const.key], const.value
|
||||
|
|
|
|||
Loading…
Reference in a new issue