MCPcopy
hub / github.com/django/django / PartialArticleForm

Class PartialArticleForm

tests/model_forms/tests.py:1813–1816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1811 # have a value of None. If a field isn't specified on a form, the
1812 # object created from the form can't provide a value for that field!
1813 class PartialArticleForm(forms.ModelForm):
1814 class Meta:
1815 model = Article
1816 fields = ("headline", "pub_date")
1817
1818 f = PartialArticleForm(auto_id=False)
1819 self.assertHTMLEqual(

Callers 1

test_subset_fieldsMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_subset_fieldsMethod · 0.68