not x in y => x not in y.

This commit is contained in:
asday 2019-08-19 22:38:30 +01:00
parent d9aa34e498
commit 1142254f62

View file

@ -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,