Added dictfield check for Int keys

Fixes #371
This commit is contained in:
Ross Lawley
2011-11-28 07:05:54 -08:00
parent e1bb453f32
commit 208a467b24
2 changed files with 6 additions and 1 deletions

View File

@@ -636,6 +636,9 @@ class FieldTest(unittest.TestCase):
post.info = {'the.title': 'test'}
self.assertRaises(ValidationError, post.validate)
post.info = {1: 'test'}
self.assertRaises(ValidationError, post.validate)
post.info = {'title': 'test'}
post.save()