#NEWLINE# def create_index_name( self , table_name , column_names , suffix = '' ) : #NEWLINE# #INDENT# "\n        Generate a unique name for the index\n\n        Django's logic for naming field indexes is different in the\n        postgresql_psycopg2 backend, so we follow that for single-column\n        indexes.\n        " #NEWLINE# if ( len ( column_names ) == 1 ) : #NEWLINE# #INDENT# return truncate_name ( ( '%s_%s%s' % ( table_name , column_names [ 0 ] , suffix ) ) , self . _get_connection ( ) . ops . max_name_length ( ) ) #NEWLINE# #UNINDENT# return super ( DatabaseOperations , self ) . create_index_name ( table_name , column_names , suffix )