mirror of https://github.com/jumpserver/jumpserver
commit
5b5c33116a
|
@ -35,6 +35,6 @@ def get_objects(model, pks):
|
|||
if len(objs) != len(pks):
|
||||
pks = set(pks)
|
||||
exists_pks = {o.id for o in objs}
|
||||
not_found_pks = ','.join(pks - exists_pks)
|
||||
not_found_pks = pks - exists_pks
|
||||
logger.error(f'DoesNotExist: <{model.__name__}: {not_found_pks}>')
|
||||
return objs
|
||||
|
|
Loading…
Reference in New Issue