diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2013-05-09 00:49:05 +0100 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2013-05-09 00:49:05 +0100 |
| commit | 1556b1c3b7a18cadf4d66d2ab6301d7fe8646ba5 (patch) | |
| tree | 250f87ed2084d7e53679773739b8e3291bfdf9df /tests/admin_validation | |
| parent | 832b4a5722ba6b55e7b17c3bac6614ecca9aa88d (diff) | |
Removed fragile admin validation of fields on ModelForm
Refs #19445
Diffstat (limited to 'tests/admin_validation')
| -rw-r--r-- | tests/admin_validation/tests.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/admin_validation/tests.py b/tests/admin_validation/tests.py index 5b2c45f6f2..5329cc7e8c 100644 --- a/tests/admin_validation/tests.py +++ b/tests/admin_validation/tests.py @@ -16,10 +16,6 @@ class ValidFields(admin.ModelAdmin): form = SongForm fields = ['title'] -class InvalidFields(admin.ModelAdmin): - form = SongForm - fields = ['spam'] - class ValidFormFieldsets(admin.ModelAdmin): def get_form(self, request, obj=None, **kwargs): class ExtraFieldForm(SongForm): @@ -49,10 +45,6 @@ class ValidationTestCase(TestCase): # Regression test for #8027: custom ModelForms with fields/fieldsets """ validate(ValidFields, Song) - self.assertRaisesMessage(ImproperlyConfigured, - "'InvalidFields.fields' refers to field 'spam' that is missing from the form.", - validate, - InvalidFields, Song) def test_custom_get_form_with_fieldsets(self): """ |
