MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / has_default

Method has_default

haystack/fields.py:81–83  ·  view source on GitHub ↗

Returns a boolean of whether this field has a default value.

(self)

Source from the content-addressed store, hash-verified

79 self.index_fieldname = self.instance_name
80
81 def has_default(self):
82 """Returns a boolean of whether this field has a default value."""
83 return self._default is not NOT_PROVIDED
84
85 @property
86 def default(self):

Callers 3

prepareMethod · 0.95
get_fieldsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected