MCPcopy Create free account
hub / github.com/django/django / is_initial

Method is_initial

django/forms/widgets.py:573–577  ·  view source on GitHub ↗

Return whether value is considered to be initial value.

(self, value)

Source from the content-addressed store, hash-verified

571 return name + "_id"
572
573 def is_initial(self, value):
574 """
575 Return whether value is considered to be initial value.
576 """
577 return bool(value and getattr(value, "url", False))
578
579 def format_value(self, value):
580 """

Callers 2

format_valueMethod · 0.95
get_contextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected