mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fixed bugs in LazyI18nString.__eq__
This commit is contained in:
@@ -79,7 +79,11 @@ class LazyI18nString:
|
||||
return self.__str__()
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.data == other.data
|
||||
if other is None:
|
||||
return False
|
||||
if hasattr(other, 'data'):
|
||||
return self.data == other.data
|
||||
return self.data == other
|
||||
|
||||
class LazyGettextProxy:
|
||||
def __init__(self, lazygettext):
|
||||
|
||||
Reference in New Issue
Block a user