MCPcopy
hub / github.com/django/django / clear

Method clear

django/db/models/fields/related_descriptors.py:964–966  ·  view source on GitHub ↗
(self, *, bulk=True)

Source from the content-addressed store, hash-verified

962 aremove.alters_data = True
963
964 def clear(self, *, bulk=True):
965 self._check_fk_val()
966 self._clear(self, bulk)
967
968 clear.alters_data = True
969

Callers 6

setMethod · 0.95
connectMethod · 0.45
disconnectMethod · 0.45
reset_queriesFunction · 0.45
__del__Method · 0.45
aiteratorMethod · 0.45

Calls 2

_check_fk_valMethod · 0.95
_clearMethod · 0.95

Tested by

no test coverage detected