Mysql – Django filter in other model without foreign key
I have two different models: class AggUii(Model): year = models.IntegerField(blank=True, null=True) month = models.CharField(max_length=2, blank=True, null=True) country = models.CharField(max_length=7, blank=True, null=True) service = models.CharField(max_length=16, blank=True, null=True) doc_id = models.CharField(max_length=100, blank=True, null=True) counts = models.IntegerField(blank=True, null=True) data_type = models.CharField(max_length=200, blank=True, null=True)…