Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Jason
https://code.djangoproject.com/ticket/32682 might be the root cause, which was fixed end of April and part of the 3.2.1 release, doesn't seem like its been backported to 3.1 On Friday, July 2, 2021 at 2:03:28 AM UTC-4 Mike Dewhirst wrote: > Trying to delete a record in the Admin list view by ch

Re: paginate_by attribute not giving error.

2021-07-02 Thread Lalit Suthar
override `get_context_data` instead of `get_queryset` for this task refer: https://ccbv.co.uk/ On Thu, 1 Jul 2021 at 14:41, sunday honesty wrote: > Hello guys, it's been a while here. > > Need some help pls. > > I had to override my ListView get_querryset() method to query my posts > according t

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Sebastian Jung
Hello Mike, i don't understand why you want make a delete from a distict... Then you delete random entrys. When you want do delete dupletes then this is a wrong method to delete dupletes... Regards Am Fr., 2. Juli 2021 um 08:03 Uhr schrieb Mike Dewhirst < mi...@dewhirst.com.au>: > Trying to del

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Mike Dewhirst
Should have mentioned - I'm running 3.2.4M--(Unsigned mail from my phone) Original message From: Jason Date: 2/7/21 22:30 (GMT+10:00) To: Django users Subject: Re: Admin TypeError - Cannot call delete() after .distinct() https://code.djangoproject.com/ticket/32682 might be t

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Mike Dewhirst
Just looked at that ticket and it seems probable that is what is happening.I'll be patient. Thanks for thatM--(Unsigned mail from my phone) Original message From: Jason Date: 2/7/21 22:30 (GMT+10:00) To: Django users Subject: Re: Admin TypeError - Cannot call delete() after

I teach Django for beginners for free ( Live sessions )

2021-07-02 Thread Symaxx
I teach Django the Python framework for free. Those interested join my Whatsapp group for free live sessions https://chat.whatsapp.com/DpOEaJTyhcXGF4YnFe3XLm #pythonprogramming