1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #25241 -- Corrected ModelForm.save() error message when saving invalid form with UUIDField pk.

This commit is contained in:
Tim Graham
2015-08-06 17:43:55 -04:00
parent 3e1bb5cfb8
commit f2b665f886
4 changed files with 37 additions and 2 deletions

View File

@@ -1978,7 +1978,7 @@ class FileAndImageFieldTests(TestCase):
form = FPForm()
names = [p[1] for p in form['path'].field.choices]
names.sort()
self.assertEqual(names, ['---------', '__init__.py', 'models.py', 'tests.py'])
self.assertEqual(names, ['---------', '__init__.py', 'models.py', 'test_uuid.py', 'tests.py'])
@skipUnless(test_images, "Pillow not installed")
def test_image_field(self):