Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2599 -- Fixed rendering problem in comma-separated integer fie…


Thanks, Christopher Lenz.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 00734bca7ed94e36d62dfb306b8b9b48df74e766 1 parent 539438a
@malcolmt malcolmt authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 django/forms/
7 django/forms/
@@ -969,6 +969,13 @@ def isCommaSeparatedIntegerList(self, field_data, all_data):
except validators.ValidationError, e:
raise validators.CriticalValidationError, e.messages
+ def render(self, data):
+ if data is None:
+ data = ''
+ elif isinstance(data, (list, tuple)):
+ data = ','.join(data)
+ return super(CommaSeparatedIntegerField, self).render(data)
class RawIdAdminField(CommaSeparatedIntegerField):
def html2python(data):
if data:
Please sign in to comment.
Something went wrong with that request. Please try again.