MCPcopy
hub / github.com/django/django / get_unique_error_message

Method get_unique_error_message

django/forms/models.py:1223–1225  ·  view source on GitHub ↗
(self, unique_check)

Source from the content-addressed store, hash-verified

1221 form.fields[name] = InlineForeignKeyField(self.instance, **kwargs)
1222
1223 def get_unique_error_message(self, unique_check):
1224 unique_check = [field for field in unique_check if field != self.fk.name]
1225 return super().get_unique_error_message(unique_check)
1226
1227
1228def _get_foreign_key(parent_model, model, fk_name=None, can_fail=False):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected