MCPcopy
hub / github.com/django/django / _existing_object

Method _existing_object

django/forms/models.py:721–724  ·  view source on GitHub ↗
(self, pk)

Source from the content-addressed store, hash-verified

719 return super().initial_form_count()
720
721 def _existing_object(self, pk):
722 if not hasattr(self, "_object_dict"):
723 self._object_dict = {o.pk: o for o in self.get_queryset()}
724 return self._object_dict.get(pk)
725
726 def _get_to_python(self, field):
727 """

Callers 1

_construct_formMethod · 0.95

Calls 2

get_querysetMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected