convert postgres query to django query
<p>I need some help with this query.</p>

<pre><code>SELECT  s.nombre as 'habilidad',
        GROUP_CONCAT( a.carrera_id )
FROM    perfiles_alumno a,
        perfiles_alumno_habilidades h,
        perfiles_universidad u,
        segmentacion_habilidad s
WHERE   u.user_id = %s
AND     a.universidad_id = u.id
AND     a.id = h.alumno_id
AND     s.id = h.habilidad_id
GROUP BY h.habilidad_id
ORDER BY a.carrera_id
</code></pre>

<p>I need to do this query in Django. I can use this in my local environment that runs in SQLite3 but when I push to production it fails because I have Postgres.</p>

<p>is there anybody who can help me?</p>