I have two models that are not related, but I need to do inner join on date, example:
select * from _Money m inner join _Pay p on m.date = p.date
class _Money(models.Model):
money = models.CharField(max_length=3)
date = models.DateField(null=True, blank=True)
value = models.DecimalField(max_digits=7, decimal_places=2)
class _Pay(models.Model):
date = models.DateField(null=True, blank=True)
value = models.IntegerField(null=True, blank=True)
how is the way correct to do it on django?