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
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
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
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
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
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
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
7 matches
Mail list logo