Ticket #7668: newform.patch
File newform.patch, 533 bytes (added by , 16 years ago) |
---|
-
django/newforms/models.py
361 361 if value in EMPTY_VALUES: 362 362 return None 363 363 try: 364 value = self.queryset.get(pk=value )364 value = self.queryset.get(pk=value.pk) 365 365 except self.queryset.model.DoesNotExist: 366 366 raise ValidationError(self.error_messages['invalid_choice']) 367 367 return value