Re: MultipleChoiceField form bug?

2020-12-22 Thread Benny M
Oh this worked out beautifully! Not sure why it hadn’t occurred to me to call super().__init__ before hand. And manipulating self.fields was the farthest thing from my mind. As for using ModelMultipleChoiceField - that’s ultimately what I went with for the project, but I couldn’t let go of why

Re: MultipleChoiceField form bug?

2020-12-22 Thread Carles Pina i Estany
Hi, On Dec/22/2020, Benny M wrote: > That’s correct. I am using a class variable since there doesn’t seem > to be a DRY - or at least not messy - way of manipulating this from > __init__. It's easy to make this mistake. I was bitten by something similar in a class based view generating a querys

Re: Django/python free Training

2020-12-22 Thread kerolos emad
very nice to hear that interested On Fri, Dec 18, 2020, 4:26 PM Python Class wrote: > Hi guys, > > I am manucho from Kenya and am good developer with django and python and i > want to teach people what i know .I want to start a youtube channel for > Django and python based tutorials ..If intrest

Re: Ongoing project

2020-12-22 Thread Abdulfarid Olakunle
I am interested, message me on Whatsapp +2348146485170 On Tue, Dec 22, 2020, 15:01 Oyedele Yusuff wrote: > I'm interested too > > On Thu, 17 Dec 2020 12:42 pm Peter Kirieny, > wrote: > >> Hello team >> I have a project in django >> (developing an ecommerce website with some innovations) >> >> U

Re: MultipleChoiceField form bug?

2020-12-22 Thread Benny M
That’s correct. I am using a class variable since there doesn’t seem to be a DRY - or at least not messy - way of manipulating this from __init__. That said, your explanation makes sense and does answer the “why” of this. If there’s a way of defining forms inside __init__ I haven’t found it… whi

Re: MultipleChoiceField form bug?

2020-12-22 Thread Carles Pina i Estany
Hi, On Dec/22/2020, Benny M wrote: > I’ve ran into some unexpected behavior while testing a ModelForm with > a MultipleChoiceField and am trying to determine if this is a bug, or > if maybe I’m doing something out of the ordinary. I think that I might guess what it is. If I could see the code

Re: Django/python free Training

2020-12-22 Thread Jonathan Mator
I am interested On Mon, Dec 21, 2020, 12:40 PM David Zea wrote: > Hi. > > I'm Interested! > > > El vie, 18 dic 2020 a las 9:26, Python Class () > escribió: > >> Hi guys, >> >> I am manucho from Kenya and am good developer with django and python and >> i want to teach people what i know .I want

Re: Django/python free Training

2020-12-22 Thread Claive NKOKOLO MALANDA
Hi i'm interested! Le vendredi 18 décembre 2020 à 15:27:14 UTC+1, rampage...@gmail.com a écrit : > Hi guys, > > I am manucho from Kenya and am good developer with django and python and i > want to teach people what i know .I want to start a youtube channel for > Django and python based tutoria

Re: Ongoing project

2020-12-22 Thread Oyedele Yusuff
I'm interested too On Thu, 17 Dec 2020 12:42 pm Peter Kirieny, wrote: > Hello team > I have a project in django > (developing an ecommerce website with some innovations) > > Using pycharm and python, am looking for a partner here > > Am a Kenyan, in Nairobi > > If interested please inbox for mor

MultipleChoiceField form bug?

2020-12-22 Thread Benny M
Hi all, I’ve ran into some unexpected behavior while testing a ModelForm with a MultipleChoiceField and am trying to determine if this is a bug, or if maybe I’m doing something out of the ordinary. In the form, I’m generating the MultipleChoiceField choices on the fly. e.g. `OPTIONS = ((m.id

Re: Apple M1 Silicon + Django = weird results

2020-12-22 Thread Benjamin Schollnick
Just an update. Working my way through the problem, it appears that either the data is being written truncated to the database, or Pillow is generating a truncated image preview (which is being stored to the database). The later is more likely, since I am seeing no other data corruption errors.