Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ ModelForm
Class
ModelForm
tests/model_forms/tests.py:3267–3270 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3265
age = forms.IntegerField()
3266
3267
class
ModelForm(forms.ModelForm, Form):
3268
class
Meta:
3269
model = Writer
3270
fields =
"__all__"
3271
3272
self.assertEqual(list(ModelForm().fields), [
"name"
,
"age"
])
3273
Callers
3
test_m2m_initial_callable
Method · 0.70
test_form_subclass_inheritance
Method · 0.70
test_field_removal
Method · 0.70
Calls
no outgoing calls
Tested by
3
test_m2m_initial_callable
Method · 0.56
test_form_subclass_inheritance
Method · 0.56
test_field_removal
Method · 0.56