mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Fix bug in get_meteor_ids() which caused extra database hits.
This commit is contained in:
parent
250bf0df78
commit
33052f4835
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ def get_meteor_ids(model, object_ids):
|
|||
object_id__in=list(result)
|
||||
).values_list('object_id', 'meteor_id')
|
||||
for obj_pk, meteor_id in query:
|
||||
result[obj_pk] = meteor_id
|
||||
result[str(obj_pk)] = meteor_id
|
||||
for obj_pk, meteor_id in result.items():
|
||||
if meteor_id is None:
|
||||
result[obj_pk] = get_meteor_id(model, obj_pk)
|
||||
|
|
|
|||
Loading…
Reference in a new issue