MCPcopy
hub / github.com/django/django / modelform_defines_fields

Function modelform_defines_fields

django/forms/models.py:1716–1719  ·  view source on GitHub ↗
(form_class)

Source from the content-addressed store, hash-verified

1714
1715
1716def modelform_defines_fields(form_class):
1717 return hasattr(form_class, "_meta") and (
1718 form_class._meta.fields is not None or form_class._meta.exclude is not None
1719 )

Callers 4

get_formsetMethod · 0.90
get_formMethod · 0.90
get_changelist_formMethod · 0.90
get_formsetMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected