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 > >

Import error on version 3.1a1

2020-06-08 Thread Jules Capacilllo
Hi guys, Am getting the below error when we I tried updating to 3.1a1 from 3.0.6 from rest_framework import filters as rest_filters File "/home/jules/.cache/pypoetry/virtualenvs/plum-TXT4_AUl-py3.8/lib/python3.8/site-packages/rest_framework/filters.py", line 11, in

Import error on version 3.1a1

2020-06-08 Thread Jules Capacilllo
Hi guys, Am getting the below error when we I tried updating to 3.1a1 from 3.0.6 from .router import router File "/home/jules/plum/plum/router.py", line 4, in from plum.plum_task.views_api import TaskViewSet, TaskStatusViewSet File "/home/jules/plum/plum/plum_ta

wrong imports channel ?

2018-04-12 Thread Jules LE BRIS
Hi, I would like to do something like this in views.py : message = {"message":msg} Channel('chat').send(message, immediately=True) but the import : from channels import Channel doen't work. I'm using channels==2.0.2. -- You received this message because you are subscribed to the Google Groups

Admin, edit_inline, and saving

2007-05-08 Thread jules
pictures are saved. Does anyone have an idea of what I may be doing wrong? Thanks Jules from django.db import models from connect.post.models import Post from nesh.thumbnail.field import ImageWithThumbnailField class Picture(models.Model): post