mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
not x in y => x not in y.
This commit is contained in:
parent
d9aa34e498
commit
1142254f62
1 changed files with 2 additions and 2 deletions
|
|
@ -196,7 +196,7 @@ class SaveSignalHandlingModel(models.Model):
|
|||
if cls._meta.proxy:
|
||||
cls = cls._meta.concrete_model
|
||||
meta = cls._meta
|
||||
if not meta.auto_created and not 'pre_save' in self.signals_to_disable:
|
||||
if not meta.auto_created and 'pre_save' not in self.signals_to_disable:
|
||||
pre_save.send(
|
||||
sender=origin, instance=self, raw=raw, using=using,
|
||||
update_fields=update_fields,
|
||||
|
|
@ -209,7 +209,7 @@ class SaveSignalHandlingModel(models.Model):
|
|||
self._state.db = using
|
||||
self._state.adding = False
|
||||
|
||||
if not meta.auto_created and not 'post_save' in self.signals_to_disable:
|
||||
if not meta.auto_created and 'post_save' not in self.signals_to_disable:
|
||||
post_save.send(
|
||||
sender=origin, instance=self, created=(not updated),
|
||||
update_fields=update_fields, raw=raw, using=using,
|
||||
|
|
|
|||
Loading…
Reference in a new issue