mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed obsolete references to form_for_instance().
This commit is contained in:
@@ -1363,8 +1363,6 @@ class ModelFormBasicTests(TestCase):
|
||||
'''<tr><th>Headline:</th><td><input type="text" name="headline" maxlength="50" required /></td></tr>
|
||||
<tr><th>Pub date:</th><td><input type="text" name="pub_date" required /></td></tr>''')
|
||||
|
||||
# You can create a form over a subset of the available fields
|
||||
# by specifying a 'fields' argument to form_for_instance.
|
||||
class PartialArticleFormWithSlug(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Article
|
||||
|
||||
Reference in New Issue
Block a user