Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove comment and set up explicit __hash__ function
Adam Janik535ccdfe97aa
diff --git a/saleor/account/models.py b/saleor/account/models.pyindex c71488eb3b..5d64109860 100644--- a/saleor/account/models.py+++ b/saleor/account/models.py@@ -68,9 +68,7 @@ class Address(models.Model):def __eq__(self, other):return self.as_data() == other.as_data()- def __hash__(self):- # FIXME: in Django 2.2 this is not present if __eq__ is defined- return super().__hash__()+ __hash__ = models.Model.__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.pyindex 20d478a1f1..f972b78ee1 100644--- a/saleor/checkout/models.py+++ b/saleor/checkout/models.py@@ -140,9 +140,7 @@ class CheckoutLine(models.Model):def __str__(self):return smart_str(self.variant)- def __hash__(self):- # FIXME: in Django 2.2 this is not present if __eq__ is defined- return super().__hash__()+ __hash__ = models.Model.__hash__def __eq__(self, other):if not isinstance(other, CheckoutLine):