Re: BUG USING modelformset_factory MODULE

2023-01-24 Thread Michael Maina
Resolved: Using parameters max_num=1, extra=0 https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/#max_num Mea culpa On Sunday, January 22, 2023 at 10:49:01 PM UTC+3 Michael Maina wrote: > Hello, > > > > I have a challenge using the modelformset_factory m

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 variable/function/class

BUG USING modelformset_factory MODULE

2023-01-22 Thread Michael Maina
Hello, I have a challenge using the modelformset_factory module ( https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/) and invite your advice. I can automatically generate a pre-populated webpage with a select dataset from the database, but the generated template creates two