Made list store empty list by default
This commit is contained in:
		
				
					committed by
					
						 Florian Schlachter
						Florian Schlachter
					
				
			
			
				
	
			
			
			
						parent
						
							ec519f20fa
						
					
				
				
					commit
					6093e88eeb
				
			| @@ -263,6 +263,7 @@ class ListField(BaseField): | |||||||
|             raise ValidationError('Argument to ListField constructor must be ' |             raise ValidationError('Argument to ListField constructor must be ' | ||||||
|                                   'a valid field') |                                   'a valid field') | ||||||
|         self.field = field |         self.field = field | ||||||
|  |         kwargs.setdefault("default", []) | ||||||
|         super(ListField, self).__init__(**kwargs) |         super(ListField, self).__init__(**kwargs) | ||||||
|  |  | ||||||
|     def __get__(self, instance, owner): |     def __get__(self, instance, owner): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user