| 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( |
no outgoing calls