1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #28937 -- Allowed BinaryField to be editable=True.

This commit is contained in:
Cameron Curry
2017-12-18 21:19:57 +01:00
committed by Tim Graham
parent 9f7772e098
commit 622ead6aaf
7 changed files with 35 additions and 4 deletions

View File

@@ -514,3 +514,7 @@ class FieldDeconstructionTests(SimpleTestCase):
self.assertEqual(path, "django.db.models.BinaryField")
self.assertEqual(args, [])
self.assertEqual(kwargs, {})
field = models.BinaryField(editable=True)
name, path, args, kwargs = field.deconstruct()
self.assertEqual(args, [])
self.assertEqual(kwargs, {'editable': True})