MCPcopy
hub / github.com/django/django / identity

Method identity

django/db/models/fields/reverse_related.py:139–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137
138 @property
139 def identity(self):
140 return (
141 self.field,
142 self.model,
143 self.related_name,
144 self.related_query_name,
145 make_hashable(self.limit_choices_to),
146 self.parent_link,
147 self.on_delete,
148 self.symmetrical,
149 self.multiple,
150 )
151
152 def __eq__(self, other):
153 if not isinstance(other, self.__class__):

Callers

nothing calls this directly

Calls 1

make_hashableFunction · 0.90

Tested by

no test coverage detected