#NEWLINE# def save_foursquare_token( sender , user , profile , client , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# FoursquareAccessToken . objects . get ( profile = profile ) . delete ( ) #NEWLINE# #UNINDENT# except FoursquareAccessToken . DoesNotExist : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# FoursquareAccessToken . objects . create ( access_token = client . get_access_token ( ) , profile = profile )