I have a profile model
class Profile(models.model):
user=models.Foreignkey(user,null=True,blank=True)
and
class Moods(models.model):
email=models.CharField(null=True,blank=True)
mood=models.CharField(null=True,blank=True)
for a single email there may be many mood like..
test@test.com happy
test@test.com sad
I want to get a queryset such that the email belongs to a user who has a foreign key in Profile model and the mood is the latest mood that is created for that user