Re: how to initialize input form fields using URL parameters

2023-01-23 Thread Michael Maina
Hello, You need to start from the urls.py file and define a path that looks close this your_path/ or your_path/ Then change your view to handle the new parameter def form_view(request, variable_data): Within your view you can now manipulate this parameter through a

how to initialize input form fields using URL parameters

2023-01-22 Thread Andrew Brown
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