thanks that worked
On Monday, March 30, 2020 at 7:49:07 PM UTC+5:30, Suraj Thapa FC wrote:
-- On Monday, March 30, 2020 at 7:49:07 PM UTC+5:30, Suraj Thapa FC wrote:
Sorry its like this...posts.objects.values('id', 'details', 'user__name' )On Mon, 30 Mar 2020, 7:46 pm Suraj Thapa FC, <surajt...@gmail.com> wrote:posts.model.values('id', 'details', 'user__name' )On Mon, 30 Mar 2020, 5:26 pm Anoop Thiparala, <anthi...@gmail.com> wrote:I need help with a django query...I have two models--1) POSTS==>id==>details==>user(foreign key to user table)2) USER==>id==>nameSQL VERSION: SELECT POSTS.ID, POSTS.DETAILS, USER.NAME FROM POSTS, USER WHERE POSTS.USER == USER.ID;I require these details in the same queryset...is it possible ?
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...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c59d7b0c- .834f-47fe-8162-5e34f42c51f9% 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/e63a421a-1f40-4368-9d05-430518db6e4b%40googlegroups.com.
No comments:
Post a Comment