#NEWLINE# def shorturl_generate( sender , instance , created , **kwargs ) : #NEWLINE# #INDENT# if GENERATE_SHORT_URL : #NEWLINE# #INDENT# if ( not created . short_url ) : #NEWLINE# #INDENT# instance . short_url = GooglUrlShort ( instance . get_http_absolute_url ( ) ) . short ( ) #NEWLINE# instance . save ( )