Re: how can I work with multi model forms

2018-12-27 Thread Danny Blaker
https://docs.djangoproject.com/en/2.1/topics/forms/modelforms/#inline-formsets https://github.com/elo80ka/django-dynamic-formset/blob/master/docs/usage.rst https://github.com/elo80ka/django-dynamic-formset/blob/master/INSTALL.rst clone the above, then check the examples On Wednesday, 26

Re: how can I work with multi model forms

2018-12-27 Thread Ira Abbott
Hi, Model forms have one model. To have the form update fields in other models, you can overload form_valid in views so that it writes the addition form field to their respective models. Ira Sent from my iPhone > On Dec 26, 2018, at 9:45 AM, Nur Mohsin wrote: > > Hi, in views.py

Re: how can I work with multi model forms

2018-12-26 Thread Nur Mohsin
Hi, in views.py form.save() is commented. Remove comment and try again. Then, tell us what happens? On Wed, Dec 26, 2018 at 6:29 PM Tessnim Zrayga wrote: > Hello everyone, > I have this design: there's a firm, a firm can have multiple nodes. Each > node can have many scheduled actions. What I'm

how can I work with multi model forms

2018-12-26 Thread Tessnim Zrayga
Hello everyone, I have this design: there's a firm, a firm can have multiple nodes. Each node can have many scheduled actions. What I'm trying to do is to create a template containing all informations about a firm and be able to create multiple scheduled actions at a time, so this is what the