fix equality check for DomainSetting when "other" is None

This commit is contained in:
Jonathan Westerholt 2019-02-11 22:00:17 +01:00
parent bc2b57e475
commit 0c290073ae

View File

@ -731,7 +731,7 @@ class DomainSetting(db.Model):
return '<DomainSetting {0} for {1}>'.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: