From 1142254f6200fe826e2b95e1ff1bf29ece8acd08 Mon Sep 17 00:00:00 2001 From: asday Date: Mon, 19 Aug 2019 22:38:30 +0100 Subject: [PATCH] `not x in y` => `x not in y`. --- model_utils/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_utils/models.py b/model_utils/models.py index 26cec0b..6083015 100644 --- a/model_utils/models.py +++ b/model_utils/models.py @@ -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,