Re: How to create a link between Posts List View and Items List View of the same User

2020-07-29 Thread Jules Andiole
replace - Item.objects.filter(designer=user) with - Item.objects.filter(*request.user*) On Thursday, 30 July 2020 at 09:03:26 UTC+10 coolguy wrote: > Please share the project directory structure. Send a screen shot or write > it. Tnx > > > On Tuesday, July 28, 2020 at 11:14:14 P

Re: How to create a link between Posts List View and Items List View of the same User

2020-07-29 Thread Jules Andiole
Replace Item.objects.filter(*designer=user*).order_by('-timestamp') with Item.objects.filter*(designer = request.user*).order_by('-timestamp') On Thursday, 30 July 2020 at 09:03:26 UTC+10 coolguy wrote: > Please share the project directory structure. Send a screen shot or write > it. Tnx > >

Re: How to create a link between Posts List View and Items List View of the same User

2020-07-29 Thread coolguy
Please share the project directory structure. Send a screen shot or write it. Tnx On Tuesday, July 28, 2020 at 11:14:14 PM UTC-4, Ahmed Khairy wrote: > > I am creating a project where there are Posts and Items, 2 different > models in 2 different apps and each has a user who can be the same. > >

How to create a link between Posts List View and Items List View of the same User

2020-07-28 Thread Ahmed Khairy
I am creating a project where there are Posts and Items, 2 different models in 2 different apps and each has a user who can be the same. I have created a page for each user to post all related posts called Userpost List view, and I want to add an if statement or a queryset to show a button to