Ticket #8957: 8966-charmless-admin-validation-prepopulated-type.diff
File 8966-charmless-admin-validation-prepopulated-type.diff, 549 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/validation.py
231 231 for idx, f in enumerate(val): 232 232 get_field(cls, model, 233 233 opts, "prepopulated_fields['%s'][%d]" 234 % (f , idx), f)234 % (field, idx), f) 235 235 236 236 def check_isseq(cls, label, obj): 237 237 if not isinstance(obj, (list, tuple)):