MCPcopy
hub / github.com/django/django / formfield

Method formfield

django/db/models/fields/__init__.py:1988–1994  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1986 return "" if val is None else duration_string(val)
1987
1988 def formfield(self, **kwargs):
1989 return super().formfield(
1990 **{
1991 "form_class": forms.DurationField,
1992 **kwargs,
1993 }
1994 )
1995
1996
1997class EmailField(CharField):

Callers 1

test_formfieldMethod · 0.95

Calls 1

formfieldMethod · 0.45

Tested by 1

test_formfieldMethod · 0.76