Could you please elaborate/be more clear about what you are really trying to do ?
On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, <bhoop23sis@gmail.com> wrote:
Hi Amit,You can use=================≠=====================Book.objects.select_related(FK).select_related(FK). values (select column name which you want).all()ThanksBhoopesh sisoudiya--On Wed, Sep 4, 2019, 9:38 AM Amit Samanta <amitsamanta46@gmail.com> wrote:Hi,--I need help i am not understanding the keywords of joining and fetch value in veiw.pyi have three tables in model.pyTable 1(Author) :Table 2(books):Table 3 (details):FK of table1FK of table2Fk = foreign keyI have to just showAuthor (author name) Books (dynamic) Books(author 2nd book) ...details(dynamic) details(dtl of author 2nd book) ...I have created the templatenow in views.py i an confusedbook=books.object(i do not get what to do)Author= (same )details = (same)Please can anybody help that will be very greatfull.Thank you in advanceThanks and RegardsAmit Samanta
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54483cc3-eadd-4559-8c61-c179cfbab933%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAk3c1OzGXKSQg8GK1C8_5Ck-iQ%2B1WjsYMdD%2B%2B0_q3inb94jyw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAC3mK7faT1yOHZXdHXc0DyeDYRtTpD_Pke39AJYmXRQW%2BOi09Q%40mail.gmail.com.
No comments:
Post a Comment