Ticket #12481: rofv1.diff

File rofv1.diff, 854 bytes (added by Tim Miller, 15 years ago)
  • django/contrib/admin/validation.py

     
    240240                if type(fields) != tuple:
    241241                    fields = (fields,)
    242242                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
    243248                    check_formfield(cls, model, opts, "fieldsets[%d][1]['fields']" % idx, field)
    244249                    try:
    245250                        f = opts.get_field(field)
Back to Top