Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
malcolmt committed Sep 23, 2006
1 parent 6cdd341 commit 539438a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django/forms/__init__.py
Expand Up @@ -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):
Expand Down

0 comments on commit 539438a

Please sign in to comment.