Re: Display related field in queryset

2010-12-13 Thread Marcos Moyano
You can use field lookups: http://docs.djangoproject.com/en/dev/topics/db/queries/#field-lookups-intro ie: Travels.objects.values('date', 'destination__name') Rgds, Marcos On Mon, Dec 13, 2010 at 6:51 AM, nsbk wrote: > Hello, > > I'm using

Display related field in queryset

2010-12-13 Thread nsbk
Hello, I'm using http://code.google.com/p/django-jqgrid/ to display grids into a Django application. Since I'm pretty new to Django I don't know how to tell Django to retrurn the value of the related field instead of the id of the related field. What I do now is: travels =