mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
fix equality check for DomainSetting when "other" is None
This commit is contained in:
parent
bc2b57e475
commit
0c290073ae
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user