code: def get_attrs(model_field, disabled=False):
      
      attrs = {}
      attrs['class'] = 'span6 xlarge'
      if disabled or isinstance(model_field, ObjectIdField):
          attrs['class'] += ' disabled'
          attrs['readonly'] = 'readonly'
      return attrs
docs: Set attributes on the display widget.