Re: Inline Formset

2020-09-20 Thread Gabriel Araya Garcia
I believe that there is not other way to do this with AJAX. This is an asynchronous call to database server. This not refresh your html bye Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El vie., 18 sept. 2020 a las 1:49, Emmanuel Oppong Ntiamoah (< ladamo...@gmail.com>) escrib

Re: Inline Formset

2020-09-19 Thread coolguy
Please share some code so we can look into. On Friday, September 18, 2020 at 12:50:49 AM UTC-4 lada...@gmail.com wrote: > Good day friends, Please i have a small challenge, I have an inline > formset in my admin where users can add more products to a store. The user > can also add a product if

Re: Inline formset with different default values for each "extra" row

2012-12-04 Thread Chris Cogdon
Because Lee Hinde's thread is broken, I'm going to take a punt at what the question is :) in a formset (inline, model, or just a plain one), the "initial" parameter to the instantiation of the form takes an list of dictionaries. Each element in the list is the initial data for _that_ row... so

Re: Inline formset factory ignores 'exclude=' for foreign key field

2012-03-01 Thread gulrtosk
Right, I don't know whether this is a bug or done on purpose ... It looks like it was done on purpose so I'd be happy to hear the experts on this. I'm using Django 1.3. I hope I got this right. On line 752 of django.forms.models (development trunk), in the add_fields() method of BaseInlineFormS

Re: inline formset validation error

2011-02-13 Thread Shawn Milochik
You can iterate through the forms in your formset and call is_valid() (and optionally save()) on them based on your needs. Since your definition of "left blank" and "invalid" could vary based on what you're doing, it's better that you make those decisions explicit. If Django tried to decide for yo

Re: Inline formset when pk doesn't exist

2010-07-26 Thread cerberos
I've managed to solve my problem. view item_form = ItemForm() ImageFormSet = formset_factory(ImageForm) image_formset = ImageFormSet() template (I'm using uni_form in the template but it's no different) {{ image_formset.management_form }} {{ item_form|as