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

Method formfield

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

Source from the content-addressed store, hash-verified

1729 return "" if val is None else val.isoformat()
1730
1731 def formfield(self, **kwargs):
1732 return super().formfield(
1733 **{
1734 "form_class": forms.DateTimeField,
1735 **kwargs,
1736 }
1737 )
1738
1739
1740class DecimalField(Field):

Callers

nothing calls this directly

Calls 1

formfieldMethod · 0.45

Tested by

no test coverage detected