Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add FIXME message

akjanikc58eb1d78fbc
diff --git a/saleor/account/models.py b/saleor/account/models.py
index ad7096c65c..c71488eb3b 100644
--- a/saleor/account/models.py
+++ b/saleor/account/models.py
@@ -68,8 +68,9 @@ class Address(models.Model):
def __eq__(self, other):
return self.as_data() == other.as_data()
- def __hash__(self, *args, **kwargs):
- return super().__hash__(*args, **kwargs)
+ def __hash__(self):
+ # FIXME: in Django 2.2 this is not present if __eq__ is defined
+ return super().__hash__()
def as_data(self):
"""Return the address as a dict suitable for passing as kwargs.
diff --git a/saleor/checkout/models.py b/saleor/checkout/models.py
index 4a64f06fb7..b249aa1303 100644
--- a/saleor/checkout/models.py
+++ b/saleor/checkout/models.py
@@ -139,8 +139,9 @@ class CartLine(models.Model):
def __str__(self):
return smart_str(self.variant)
- def __hash__(self, *args, **kwargs):
- return super().__hash__(*args, **kwargs)
+ def __hash__(self):
+ # FIXME: in Django 2.2 this is not present if __eq__ is defined
+ return super().__hash__()
def __eq__(self, other):
if not isinstance(other, CartLine):