Thanks for your advice, but that dint't solve the issue :-/
@receiver(m2m_changed, sender=News.department.through)
On 09/17/2013 05:02 PM, John DeRosa wrote:
> From memory, I _think_ this catches the signal from the Department
> model, not the News model. To catch it when you edit the
>From memory, I _think_ this catches the signal from the Department model, not
>the News model. To catch it when you edit the relationship from a *News* model
>form, you need to hook it up ("sender=News.department.through").
On Sep 17, 2013, at 3:59 AM, Roberto López López
Hi,
I need to use the m2m_changed signal to assign permissions over an
object. But somehow, I cannot make it work.
To summarise, my models.py is as follows:
from cmsplugin_news.models import News
from django.contrib.auth.models import Group
from django.db import models
from
3 matches
Mail list logo