<s> import django <EOL> from django . db . backends . postgresql_psycopg2 . introspection import DatabaseIntrospection <EOL> if django . VERSION >= ( <NUM_LIT:1> , <NUM_LIT:8> , <NUM_LIT:0> ) : <EOL> from django . db . backends . base . introspection import TableInfo <EOL> class DatabaseSchemaIntrospection ( DatabaseIntrospection ) : <EOL> def get_table_list ( self , cursor ) : <EOL> "<STR_LIT>" <EOL> cursor . execute ( """<STR_LIT>""" % self . connection . schema_name ) <EOL> if django . VERSION >= ( <NUM_LIT:1> , <NUM_LIT:8> , <NUM_LIT:0> ) : <EOL> return [ TableInfo ( row [ <NUM_LIT:0> ] , { '<STR_LIT:r>' : '<STR_LIT:t>' , '<STR_LIT:v>' : '<STR_LIT:v>' } . get ( row [ <NUM_LIT:1> ] ) ) <EOL> for row in cursor . fetchall ( ) <EOL> if row [ <NUM_LIT:0> ] not in self . ignored_tables ] <EOL> else : <EOL> return [ row [ <NUM_LIT:0> ] for row in cursor . fetchall ( ) if row [ <NUM_LIT:0> ] not in self . ignored_tables ] </s>
