minor fix in ImageField docstring
This commit is contained in:
		| @@ -1867,12 +1867,9 @@ class ImageField(FileField): | |||||||
|     """ |     """ | ||||||
|     A Image File storage field. |     A Image File storage field. | ||||||
|  |  | ||||||
|     @size (width, height, force): |     :param size: max size to store images, provided as (width, height, force) | ||||||
|         max size to store images, if larger will be automatically resized |         if larger, it will be automatically resized (ex: size=(800, 600, True)) | ||||||
|         ex: size=(800, 600, True) |     :param thumbnail_size: size to generate a thumbnail, provided as (width, height, force) | ||||||
|  |  | ||||||
|     @thumbnail (width, height, force): |  | ||||||
|         size to generate a thumbnail |  | ||||||
|  |  | ||||||
|     .. versionadded:: 0.6 |     .. versionadded:: 0.6 | ||||||
|     """ |     """ | ||||||
|   | |||||||
| @@ -618,6 +618,8 @@ class FieldTest(MongoDBTestCase): | |||||||
|         self.assertRaises(ValidationError, person.validate) |         self.assertRaises(ValidationError, person.validate) | ||||||
|         person.admin = 'Yes' |         person.admin = 'Yes' | ||||||
|         self.assertRaises(ValidationError, person.validate) |         self.assertRaises(ValidationError, person.validate) | ||||||
|  |         person.admin = 'False' | ||||||
|  |         self.assertRaises(ValidationError, person.validate) | ||||||
|  |  | ||||||
|     def test_uuid_field_string(self): |     def test_uuid_field_string(self): | ||||||
|         """Test UUID fields storing as String |         """Test UUID fields storing as String | ||||||
| @@ -2905,7 +2907,6 @@ class FieldTest(MongoDBTestCase): | |||||||
|         for invalid_data in (2, u'Im_a_unicode', ['some_str']): |         for invalid_data in (2, u'Im_a_unicode', ['some_str']): | ||||||
|             self.assertRaises(ValidationError, Attachment(blob=invalid_data).validate) |             self.assertRaises(ValidationError, Attachment(blob=invalid_data).validate) | ||||||
|  |  | ||||||
|  |  | ||||||
|     def test_binary_field_primary(self): |     def test_binary_field_primary(self): | ||||||
|         class Attachment(Document): |         class Attachment(Document): | ||||||
|             id = BinaryField(primary_key=True) |             id = BinaryField(primary_key=True) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user