Fix unequality when comparing sections
This commit is contained in:
parent
25c2b5e782
commit
02a03bd0f2
1 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,9 @@ class Section(object):
|
||||||
return (self.section_id == section.section_id and
|
return (self.section_id == section.section_id and
|
||||||
self.name == section.name and
|
self.name == section.name and
|
||||||
self.section_type == section.section_type)
|
self.section_type == section.section_type)
|
||||||
__ne__ = not __eq__
|
|
||||||
|
def __ne__(self, section):
|
||||||
|
return not self == section
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def section_id(self):
|
def section_id(self):
|
||||||
|
|
Loading…
Reference in a new issue