Thursday, January 30, 2014

m2m_changed (How to get only the affected/changed fields in pk_set)

The docs say (for the param pk_set in m2m_changed signal)
For the pre_add, post_add, pre_remove and post_remove actions, this is a set of primary key values that have been added to or removed from the relation.

But it seems, that pk_set contains all values and not only the affected/changed once. Am I interpreting the docs wrong or could my execution be inappropriate?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/72f2207b-0528-4cdc-a259-a1105a6574ae%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment