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

Method formfield

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

Source from the content-addressed store, hash-verified

1588 return "" if val is None else val.isoformat()
1589
1590 def formfield(self, **kwargs):
1591 return super().formfield(
1592 **{
1593 "form_class": forms.DateField,
1594 **kwargs,
1595 }
1596 )
1597
1598
1599class DateTimeField(DateField):

Callers

nothing calls this directly

Calls 1

formfieldMethod · 0.45

Tested by

no test coverage detected