Ticket #2579: fix_raw_id_admin_m2m.zj.patch
File fix_raw_id_admin_m2m.zj.patch, 420 bytes (added by , 18 years ago) |
---|
-
__init__.py
974 974 975 975 class RawIdAdminField(CommaSeparatedIntegerField): 976 976 def html2python(data): 977 return data.split(',') 977 if data: 978 return data.split(',') 979 else: 980 return [] 978 981 html2python = staticmethod(html2python) 979 982 980 983 class XMLLargeTextField(LargeTextField):