MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / update

Method update

server/projects/main/apps/base/basemodel.py:153–160  ·  view source on GitHub ↗

Update all objects in this queryset with modifications in ``kwargs``.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

151 return super(MTQuerySet, self).create(*args, **kwargs)
152
153 def update(self, *args, **kwargs):
154 """
155 Update all objects in this queryset with modifications in ``kwargs``.
156 """
157 if not kwargs.pop("notrack", False):
158 kwargs["modifier"] = kwargs.pop("user", None)
159 kwargs["modified_time"] = utcnow()
160 return super(MTQuerySet, self).update(*args, **kwargs)
161
162 def delete(self, user=None, permanent=False):
163 """

Callers 15

reclose_jobMethod · 0.45
after_job_closedMethod · 0.45
revoke_jobMethod · 0.45
close_jobMethod · 0.45
save_task_resultMethod · 0.45
reset_unack_taskMethod · 0.45
release_nodeMethod · 0.45
set_node_busy_stateMethod · 0.45
get_killed_taskMethod · 0.45

Calls 1

utcnowFunction · 0.70

Tested by

no test coverage detected