Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2579 -- Fixed a problem with empty raw_id_admin form fields. T…

…hanks 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
  • Loading branch information...
commit 539438a2312b53211cddfee897b1dd398b360c99 1 parent 6cdd341
Malcolm Tredinnick malcolmt authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/forms/__init__.py
5 django/forms/__init__.py
View
@@ -971,7 +971,10 @@ def isCommaSeparatedIntegerList(self, field_data, all_data):
class RawIdAdminField(CommaSeparatedIntegerField):
def html2python(data):
- return data.split(',')
+ if data:
+ return data.split(',')
+ else:
+ return []
html2python = staticmethod(html2python)
class XMLLargeTextField(LargeTextField):
Please sign in to comment.
Something went wrong with that request. Please try again.