diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-09-23 12:06:38 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-09-23 12:06:38 +0000 |
| commit | 539438a2312b53211cddfee897b1dd398b360c99 (patch) | |
| tree | d84b2e21b815d329b1d203635e2c0a03e070a99d /django/forms/__init__.py | |
| parent | 6cdd341dab3e634f5b969547a0d55d04a430e044 (diff) | |
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
Diffstat (limited to 'django/forms/__init__.py')
| -rw-r--r-- | django/forms/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/forms/__init__.py b/django/forms/__init__.py index 195c357670..544ea7dd4f 100644 --- a/django/forms/__init__.py +++ b/django/forms/__init__.py @@ -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): |
