diff options
| author | Andrea Grandi <a.grandi@gmail.com> | 2015-05-24 15:56:48 +0100 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2015-05-24 17:32:16 +0200 |
| commit | 43b2d88a5b9cfb151ccf7ac861f2750e70c0e2c4 (patch) | |
| tree | 005355dd476cfa4cbde0bf52a043fccc15cb0335 /tests/postgres_tests/test_hstore.py | |
| parent | 9ef2615d4968ed52dbd88a19f03746a2f16c7511 (diff) | |
Fixed #24844 -- Corrected has_changed implementation for HStoreField.
Diffstat (limited to 'tests/postgres_tests/test_hstore.py')
| -rw-r--r-- | tests/postgres_tests/test_hstore.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_hstore.py b/tests/postgres_tests/test_hstore.py index e63eda46b9..9569711b3d 100644 --- a/tests/postgres_tests/test_hstore.py +++ b/tests/postgres_tests/test_hstore.py @@ -178,6 +178,12 @@ class TestFormField(PostgresSQLTestCase): form_field = model_field.formfield() self.assertIsInstance(form_field, forms.HStoreField) + def test_empty_field_has_not_changed(self): + class HStoreFormTest(forms.Form): + f1 = HStoreField() + form_w_hstore = HStoreFormTest() + self.assertFalse(form_w_hstore.has_changed()) + class TestValidator(PostgresSQLTestCase): |
