class Feedback(models.Model): id = models.BigAutoField(primary_key=True) user_id = models.IntegerField() mobile_device_id = models.IntegerField(blank=True, null=True) device_id = models.CharField(max_length=128) satisfaction_level = models.SmallIntegerField('Satisfaction level') subject = models.SmallIntegerField('Subject') description = models.CharField('Description', max_length=2048, blank=True, null=True) photo = models.CharField(max_length=1024, blank=True, null=True) created_dt = models.DateTimeField('Created time', auto_now_add=True, blank=True, null=True) updated_time = models.DateTimeField(auto_now=True,blank=True, null=True) id_service_station = models.ForeignKey('ServiceStation', models.DO_NOTHING, db_column='id_service_station') class MobileDevice(models.Model): id = models.BigAutoField('ID', primary_key=True) user_id = models.IntegerField(blank=True, null=True) status = models.SmallIntegerField('Status') device_id = models.CharField(unique=True, max_length=128) phone_number = models.CharField('Phone number', max_length=12) 

There are 2 models. I want to get the result of such a SQL query using Django ORM tools without a raw query:

 SELECT f.satisfaction_level, f.subject, f.description, f.photo, m.phone_number, s.n_service_station FROM feedback as f JOIN mobile_device as m ON f.user_id=m.user_id JOIN service_station as s ON f.id_service_station=s.id_service_station 

    0