mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-05-18 04:21:10 +00:00
Don't emit change messages for migrations/ddp apps.
This commit is contained in:
parent
1e000d2892
commit
65927e20e6
1 changed files with 2 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue