Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
manytomany and the save() problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hadaraz  
View profile  
 More options Jun 10 2009, 5:15 am
From: hadaraz <hada...@gmail.com>
Date: Wed, 10 Jun 2009 02:15:11 -0700 (PDT)
Local: Wed, Jun 10 2009 5:15 am
Subject: manytomany and the save() problem
I need to override the save_m2m() method on some admin add & change
views I have. Looking through this list and django-users, I see it's
an ongoing problem for many people. As I understand it, the post_save
signal fires /before/ save_m2m() is called, and overriding the
save_model() method is not much help, because save_m2m() will be
called afterwards with the original values of the form.
My question:   Why not make a method, just like the save_model()
method, which saves the m2m info and can be overridden if needed? Is
there a way around it if this suggestion is no-go?

hadaraz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »