Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored September 23, 2006

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/forms/__init__.py
5  django/forms/__init__.py
@@ -971,7 +971,10 @@ def isCommaSeparatedIntegerList(self, field_data, all_data):
971 971
 
972 972
 class RawIdAdminField(CommaSeparatedIntegerField):
973 973
     def html2python(data):
974  
-        return data.split(',')
  974
+        if data:
  975
+            return data.split(',')
  976
+        else:
  977
+            return []
975 978
     html2python = staticmethod(html2python)
976 979
 
977 980
 class XMLLargeTextField(LargeTextField):

0 notes on commit 539438a

Please sign in to comment.
Something went wrong with that request. Please try again.