I am trying to pass initial values to my form set via URL Query
ex) Localhost:8000?/First_name_id_0=Samuel
[image: forms.py.png]

I was told to use the initial parameter and not the instance in my view 
first

"An inline formset is related to one instance of the parent model. You 
identify *which* instance the formset is related to by the “instance” 
parameter. The “initial” parameter has a different usage, which is defined 
in the docs."

But I can't seem to find an examples in the docs
[image: Views.py.png]

How do I change my view so that that it initialize my form set with URL 
Query?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/34ccbb87-11dc-4097-84ac-95f229d9183an%40googlegroups.com.

Reply via email to