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 Decem
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 form.save(
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
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 te
Yeah, I bet that lastname is required=True (which is default). You
probably want to redefine lastname to avoid that.
On Mar 1, 5:25 am, David De La Harpe Golden
wrote:
> On 28/02/11 23:13, django wrote:
>
> > hi guys
> > I am new to django.
>
> > I have got two model User(Django built in ) and a
On 28/02/11 23:13, django wrote:
> hi guys
> I am new to django.
>
> I have got two model User(Django built in ) and a model customer, user
> is foreign key in customer
>
> class Customer(models.Model):
> user = models.ForeignKey(User, related_name='customers')
> street = models.CharField(max
hi guys
I am new to django.
I have got two model User(Django built in ) and a model customer, user
is foreign key in customer
class Customer(models.Model):
user = models.ForeignKey(User, related_name='customers')
street = models.CharField(max_length=200)
city = models.CharField(max_length=1
7 matches
Mail list logo