Re: wondering how to do something similar to save_model for inline.

2009-01-07 Thread Timboy
Good call on the ModelAdmin spot. (user contacted me by email to see if I had a solution yet.) I got the formset.save() from here: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save-method saying: "If your formset contains a ManyToManyField, you'll also need to call formset.sa

Re: wondering how to do something similar to save_model for inline.

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 10:10 PM, Timboy wrote: > > Still no solution to this. It has been confirmed by another user. Is > it a bug? > (Where was it confirmed by another user? I don't see that.) The doc list "save_formset" under "ModelAdmin methods" yet you seem to have added it to your inline

Re: wondering how to do something similar to save_model for inline.

2009-01-06 Thread Timboy
Still no solution to this. It has been confirmed by another user. Is it a bug? On Dec 29 2008, 2:33 pm, Timboy wrote: > DB is sqlite3. Deleted DB file syncd and still same traceback. > here is proper traceback paste:http://dpaste.com/103517/ > > On Dec 28, 9:10 pm, Praveen wrote: > > > This is

Re: wondering how to do something similar to save_model for inline.

2008-12-29 Thread Timboy
DB is sqlite3. Deleted DB file syncd and still same traceback. here is proper traceback paste: http://dpaste.com/103517/ On Dec 28, 9:10 pm, Praveen wrote: > This is your database error.. > > On Dec 28, 8:32 am, Timboy wrote: > > > Great link. I was really excited to try it. > > > Here is my ne

Re: wondering how to do something similar to save_model for inline.

2008-12-28 Thread Praveen
This is your database error.. On Dec 28, 8:32 am, Timboy wrote: > Great link. I was really excited to try it. > > Here is my new inline: > class rentalInline(admin.TabularInline): >     model= Rent >     extra = 3 >     raw_id_fields = ('movie',) >     exclude = ['rented_by'] > >     def save_fo

Re: wondering how to do something similar to save_model for inline.

2008-12-27 Thread Timboy
Great link. I was really excited to try it. Here is my new inline: class rentalInline(admin.TabularInline): model= Rent extra = 3 raw_id_fields = ('movie',) exclude = ['rented_by'] def save_formset(self, request, form, formset, change): instances = formset.save(commit

Re: wondering how to do something similar to save_model for inline.

2008-12-27 Thread alex.gay...@gmail.com
Take a look at the save formset method: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#save-formset-self-request-form-formset-change On Dec 27, 6:46 pm, Timboy wrote: > I have an admin object where I want to pass in the request.user on > save. It works fine in my normal admin class but