mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #2579 -- Fixed a problem with empty raw_id_admin form fields. Thanks to
Brendan McAdams and zakj@nox.cx for some good diagnostic work on this one. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -971,7 +971,10 @@ class CommaSeparatedIntegerField(TextField): | ||||
|  | ||||
| class RawIdAdminField(CommaSeparatedIntegerField): | ||||
|     def html2python(data): | ||||
|         return data.split(',') | ||||
|         if data: | ||||
|             return data.split(',') | ||||
|         else: | ||||
|             return [] | ||||
|     html2python = staticmethod(html2python) | ||||
|  | ||||
| class XMLLargeTextField(LargeTextField): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user