mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-30 15:05:39 +00:00
Merge pull request #458 from joniw/fix-equality-domain-setting
fix equality check for DomainSetting when "other" is None
This commit is contained in:
commit
5b88ec58ec
@ -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