MCPcopy
hub / github.com/django/django / do_pending_operations

Method do_pending_operations

django/apps/registry.py:428–435  ·  view source on GitHub ↗

Take a newly-prepared model and pass it to each function waiting for it. This is called at the very end of Apps.register_model().

(self, model)

Source from the content-addressed store, hash-verified

426 apply_next_model(model_class)
427
428 def do_pending_operations(self, model):
429 """
430 Take a newly-prepared model and pass it to each function waiting for
431 it. This is called at the very end of Apps.register_model().
432 """
433 key = model._meta.app_label, model._meta.model_name
434 for function in self._pending_operations.pop(key, []):
435 function(model)
436
437
438apps = Apps(installed_apps=None)

Callers 2

register_modelMethod · 0.95
register_modelMethod · 0.80

Calls 2

functionFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected