Ticket #12481: rofv1.diff
File rofv1.diff, 854 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/validation.py
240 240 if type(fields) != tuple: 241 241 fields = (fields,) 242 242 for field in fields: 243 if field in cls.readonly_fields: 244 # Stuff can be put in fields that isn't actually a model field 245 # if it's in readonly_fields, readonly_fields will handle the 246 # validation of such things. 247 continue 243 248 check_formfield(cls, model, opts, "fieldsets[%d][1]['fields']" % idx, field) 244 249 try: 245 250 f = opts.get_field(field)