Btw I have opened a stackoverflow thread:
http://stackoverflow.com/questions/17149305/post-save-signal-and-relations
At the beginning I was thinking of using a post_save signal, but an user
there suggested me to better use the m2m_changed.
On 06/18/2013 04:12 PM, Roberto López López wrote:
>
Hi,
I am having trouble registering a function to the m2m_changed signal. My
code is as follows:
1. from django.db.models.signals import m2m_changed
2. from django.db import models
3. from django.dispatch.dispatcher import receiver
4.
5. class Project(models.Model):
6. employees = models.M
2 matches
Mail list logo