Commit b7482629 by Tom Christie

Merge pull request #1309 from lukaszb/errors-for-renamed-fields

Should it be that way?
parents 71ab7cda 973f898a
......@@ -67,6 +67,8 @@ class TestPreSaveValidationExclusionsSerializer(TestCase):
# does not have `blank=True`, so this serializer should not validate.
serializer = ShouldValidateModelSerializer(data={'renamed': ''})
self.assertEqual(serializer.is_valid(), False)
self.assertIn('renamed', serializer.errors)
self.assertNotIn('should_validate_field', serializer.errors)
class TestCustomValidationMethods(TestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment