[Answered ]-Query Values Muliple Field Foreign Key Column

2👍

try changing your:

class Personel(models.Model):
    def __unicode___(self):
        return "'%s - %s %s" % (self.Numara, self.Isim, self.Soyisim)

or ___str___(self): if using python 3.

although that may not solve it… try:

sorgu = Islem.objects.all().values('MenuAd', 'Personel__get_full_personel')

Leave a comment