Re: Can I override __new__ in Django ModelForm?

2019-07-10 Thread Jani Tiainen
Hi. You can add fields dynamically on model __init__ method and AFAIK that's best and recommended way to do it. I'm not sure is that even in Django docs. ke 10. heinäk. 2019 klo 17.44 אורי kirjoitti: > Hi, > > I have a ModelForm with Django 1.11, and I'm moving a few fields to > another

Can I override __new__ in Django ModelForm?

2019-07-10 Thread אורי
Hi, I have a ModelForm with Django 1.11, and I'm moving a few fields to another model. Calling make_migrations causes an error because these fields don't exist in the current model. I added some of the fields to the form, but one of the fields is a TranslatedField and therefore there are