def is_rich_text_default_for_user(user):
 if user.is_authenticated():
  try:
   return user.get_profile().should_use_rich_text
  except ObjectDoesNotExist:
   pass
 siteconfig = SiteConfiguration.objects.get_current()
 return siteconfig.get(u'default_use_rich_text')

def is_rich_text_default_for_user ( user ) : if user . is_authenticated ( ) : try : return user . get_profile ( ) . should_use_rich_text except ObjectDoesNotExist : pass siteconfig = SiteConfiguration . objects . get_current ( ) return siteconfig . get ( u'default_use_rich_text' )
returns whether the user edits in markdown by default .