Ticket #14567: queryset_none.patch
File queryset_none.patch, 566 bytes (added by , 14 years ago) |
---|
-
django/forms/models.py
1034 1034 if self.required and not value: 1035 1035 raise ValidationError(self.error_messages['required']) 1036 1036 elif not self.required and not value: 1037 return []1037 return self.queryset.none() 1038 1038 if not isinstance(value, (list, tuple)): 1039 1039 raise ValidationError(self.error_messages['list']) 1040 1040 for pk in value: