Don't emit change messages for migrations/ddp apps.

This commit is contained in:
Tyson Clugg 2015-06-05 09:37:36 +10:00
parent 1e000d2892
commit 65927e20e6

View file

@ -687,9 +687,8 @@ class DDP(APIMixin):
"""Pre change (save/delete) signal handler."""
if self._in_migration:
return
# mod_name = model_name(sender)
# if mod_name.split('.', 1)[0] in ('migrations', 'dddp'):
# return # never send migration or DDP internal models
if model_name(sender).split('.', 1)[0] in ('migrations', 'dddp'):
return # never send migration or DDP internal models
obj = kwargs['instance']
using = kwargs['using']
self._ddp_subscribers.setdefault(