diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-28 07:37:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-28 07:37:25 -0500 |
| commit | d6e26e5b7c8063c2cc5aa045edea6555bf358fc2 (patch) | |
| tree | 81c1c12e12ebb20b2d2243bc21d75ec0f243750a /tests/model_forms | |
| parent | 5f3a689f71dedced29b77763617244845aa8b99a (diff) | |
Removed obsolete references to form_for_instance().
Diffstat (limited to 'tests/model_forms')
| -rw-r--r-- | tests/model_forms/models.py | 8 | ||||
| -rw-r--r-- | tests/model_forms/tests.py | 2 |
2 files changed, 0 insertions, 10 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py index cf5ca49cf6..6e08eaec71 100644 --- a/tests/model_forms/models.py +++ b/tests/model_forms/models.py @@ -1,11 +1,3 @@ -""" -XX. Generating HTML forms from models - -This is mostly just a reworking of the ``form_for_model``/``form_for_instance`` -tests to use ``ModelForm``. As such, the text may not make sense in all cases, -and the examples are probably a poor fit for the ``ModelForm`` syntax. In other -words, most of these tests should be rewritten. -""" import datetime import os import tempfile diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index afe94890c3..b92ba1fa4a 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -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 |
