12👍
This is an open bug: https://code.djangoproject.com/ticket/16073
I wasted hours on it this week.
3👍
You are connecting it twice, once with m2m_changed.connect
and the other time with receiver decorator.
- Django conditional Subquery aggregate
- Can't fix "zipimport.ZipImportError: can't decompress data; zlib not available" when I type in "python3.6 get-pip.py"
- Django-storages get the full S3 url
- Nested loop in Django template
- Can't connect to server running inside docker container (Docker for mac)
2👍
Not sure if it will help, but the following is working for me:
class Flow(models.Model):
datalist = models.ManyToManyField(Data)
from django.db.models.signals import post_save, pre_delete, m2m_changed
def handle_flow(sender, instance, *args, **kwargs):
logger.debug("Signal catched !")
m2m_changed.connect(handle_flow, sender=Flow.datalist.through)
- Django : Syncdb incorrectly warns that many-to-many field is stale
- How to override method of the logging module
- Django, phpmyadmin and mysql?
- Add dynamic field to django admin model form
- Why does JSON returned from the django rest framework have forward slashes in the response?
0👍
I’m not sure if this will help, but are you sure that you should use Sender.pages.through for this special case? perhaps if you tried @reciever(m2m_changed, sender=PageChild)
Note: if you have @reciever, you do not need m2_changed.connect(…) as @reciever already performs the connect operation.
- How to pass the remote IP to a proxied service? – Nginx
- Limit Maximum Choices of ManyToManyField
- Monolithic or microservice concept
- Error: Cursor' object has no attribute '_last_executed
Source:stackexchange.com