MCPcopy
hub / github.com/django/django / _set_creation_counter

Method _set_creation_counter

django/db/models/manager.py:128–134  ·  view source on GitHub ↗

Set the creation counter value for this instance and increment the class-level copy.

(self)

Source from the content-addressed store, hash-verified

126 cls._meta.add_manager(self)
127
128 def _set_creation_counter(self):
129 """
130 Set the creation counter value for this instance and increment the
131 class-level copy.
132 """
133 self.creation_counter = BaseManager.creation_counter
134 BaseManager.creation_counter += 1
135
136 def db_manager(self, using=None, hints=None):
137 obj = copy.copy(self)

Callers 2

__init__Method · 0.95
from_modelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected