AlertTable.objects.filter(pendingalertstable__in=inner_qs)
Or I you could even do:
AlertTable.objects.filter(pendingalertstable__id__gt=0)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails
I have two tables as shown below.
class AlertTable(models.Model):
id = models.AutoField(primary_key=True)
alarm_text = models.CharField(max_length=800,blank=False,null=False)
event_type = models.SmallIntegerField(blank=False,null=False)
created = models.DateTimeField()
class Me
2 matches
Mail list logo