MCPcopy
hub / github.com/django/django / RESTRICT

Function RESTRICT

django/db/models/deletion.py:47–49  ·  view source on GitHub ↗
(collector, field, sub_objs, using)

Source from the content-addressed store, hash-verified

45
46
47def RESTRICT(collector, field, sub_objs, using):
48 collector.add_restricted_objects(field, sub_objs)
49 collector.add_dependency(field.remote_field.model, field.model)
50
51
52def SET(value):

Callers

nothing calls this directly

Calls 2

add_dependencyMethod · 0.45

Tested by

no test coverage detected