def markdown_unescape_field(obj, field_name):
 if isinstance(obj, Model):
  setattr(obj, field_name, markdown_unescape(getattr(obj, field_name)))
 elif isinstance(obj, dict):
  obj[field_name] = markdown_unescape(obj[field_name])
 else:
  raise TypeError((u'Unexpected type %r passed to markdown_unescape_field' % obj))

def markdown_unescape_field ( obj , field_name ) : if isinstance ( obj , Model ) : setattr ( obj , field_name , markdown_unescape ( getattr ( obj , field_name ) ) ) elif isinstance ( obj , dict ) : obj [ field_name ] = markdown_unescape ( obj [ field_name ] ) else : raise TypeError ( ( u'Unexpected type %r passed to markdown_unescape_field' % obj ) )
unescapes markdown text in a model or dictionarys field .