MCPcopy
hub / github.com/django/django / get_date_error_message

Method get_date_error_message

django/forms/models.py:936–944  ·  view source on GitHub ↗
(self, date_check)

Source from the content-addressed store, hash-verified

934 }
935
936 def get_date_error_message(self, date_check):
937 return gettext(
938 "Please correct the duplicate data for %(field_name)s "
939 "which must be unique for the %(lookup)s in %(date_field)s."
940 ) % {
941 "field_name": date_check[2],
942 "date_field": date_check[3],
943 "lookup": str(date_check[1]),
944 }
945
946 def get_form_error(self):
947 return gettext("Please correct the duplicate values below.")

Callers 1

validate_uniqueMethod · 0.95

Calls 1

gettextFunction · 0.90

Tested by

no test coverage detected