def table_description():
 if (connection.vendor == u'sqlite'):
  fields = connection.introspection.get_table_description(connection.cursor(), u'course_overviews_courseoverview')
  return [f.name for f in fields]
 else:
  cursor = connection.cursor()
  cursor.execute(u"\n            SELECT column_name\n            FROM information_schema.columns\n            WHERE table_name = 'course_overviews_courseoverview' AND table_schema = DATABASE()")
  rows = cursor.fetchall()
  return [r[0] for r in rows]

def table_description ( ) : if ( connection . vendor == u'sqlite' ) : fields = connection . introspection . get_table_description ( connection . cursor ( ) , u'course_overviews_courseoverview' ) return [ f . name for f in fields ] else : cursor = connection . cursor ( ) cursor . execute ( u"\n            SELECT column_name\n            FROM information_schema.columns\n            WHERE table_name = 'course_overviews_courseoverview' AND table_schema = DATABASE()" ) rows = cursor . fetchall ( ) return [ r [ 0 ] for r in rows ]
handle mysql/pg vs sqlite .