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
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
>
>
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.
>
>
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
4 matches
Mail list logo