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

Method update

server/projects/analysis/apps/base/basemodel.py:96–103  ·  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

94 return super(MTQuerySet, self).create(*args, **kwargs)
95
96 def update(self, *args, **kwargs):
97 """
98 Update all objects in this queryset with modifications in ``kwargs``.
99 """
100 if not kwargs.pop("notrack", False):
101 kwargs["modifier"] = kwargs.pop("user", None)
102 kwargs["modified_time"] = utcnow()
103 return super(MTQuerySet, self).update(*args, **kwargs)
104
105 def delete(self, user=None, permanent=False):
106 """

Callers 15

deleteMethod · 0.45
undeleteMethod · 0.45
update_issue_authorMethod · 0.45
close_all_issuesMethod · 0.45
refresh_closed_issuesMethod · 0.45
get_summaryMethod · 0.45

Calls 1

utcnowFunction · 0.70

Tested by

no test coverage detected