Query a SQL query on DJango

I have the following SQL query: SELECT DISTINCT ON (e.id) e.id, e.name, e.name, e.estado, e.documento, c.level, s.name AS semester, t.name AS type From the student e JOIN characterization c ON…