From 0c290073ae2162d69831050e6317cf9537f2d0ac Mon Sep 17 00:00:00 2001 From: Jonathan Westerholt Date: Mon, 11 Feb 2019 22:00:17 +0100 Subject: [PATCH] fix equality check for DomainSetting when "other" is None --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index feea2e1..e7941f8 100644 --- a/app/models.py +++ b/app/models.py @@ -731,7 +731,7 @@ class DomainSetting(db.Model): return ''.format(setting, self.domain.name) def __eq__(self, other): - return self.setting == other.setting + return type(self) == type(other) and self.setting == other.setting def set(self, value): try: