Ticket #8957: 8966-charmless-admin-validation-prepopulated-type.diff

File 8966-charmless-admin-validation-prepopulated-type.diff, 549 bytes (added by charmless, 16 years ago)

patch.

  • django/contrib/admin/validation.py

     
    231231            for idx, f in enumerate(val):
    232232                get_field(cls, model,
    233233                        opts, "prepopulated_fields['%s'][%d]"
    234                         % (f, idx), f)
     234                        % (field, idx), f)
    235235
    236236def check_isseq(cls, label, obj):
    237237    if not isinstance(obj, (list, tuple)):
Back to Top