[Fixed]-Pass values between Forms

1👍

You can update get_form_kwargs method in you view to pass form1 field values

def get_form_kwargs(self):
    """Returns the keyword arguments for instantiating the form."""
    kwargs = super(YourViewName, self).get_form_kwargs()
    kwargs['fieldform1'] = 'fieldform1value'
    return kwargs

Ref django views

👤Ashish

Leave a comment