diff --git a/README.rst b/README.rst index 12ad4182..e661a800 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ Features * Smart categories (by price range, colour, etc) * Registered or anonymous checkout * Configurable number of checkout steps -* Denormalised data for accessiblilty and performance +* Denormalised data for accessibility and performance * Authenticated customer accounts with transaction history Dependencies diff --git a/cartridge/shop/fields.py b/cartridge/shop/fields.py index 5ef32269..d2d05fed 100644 --- a/cartridge/shop/fields.py +++ b/cartridge/shop/fields.py @@ -1,6 +1,6 @@ """ Various model fields that mostly provide default field sizes to ensure -these are consistant when used across multiple models. +these are consistent when used across multiple models. """ from locale import localeconv diff --git a/cartridge/shop/management/commands/product_db.py b/cartridge/shop/management/commands/product_db.py index 24b6689a..d7e19527 100644 --- a/cartridge/shop/management/commands/product_db.py +++ b/cartridge/shop/management/commands/product_db.py @@ -17,7 +17,7 @@ ProductVariation, ) -# images get copied from thie directory +# images get copied from this directory LOCAL_IMAGE_DIR = "/tmp/orig" # images get copied to this directory under STATIC_ROOT IMAGE_SUFFIXES = [ diff --git a/cartridge/shop/models.py b/cartridge/shop/models.py index b10b978a..26bb7f00 100644 --- a/cartridge/shop/models.py +++ b/cartridge/shop/models.py @@ -212,7 +212,7 @@ class Meta: class ProductVariationMetaclass(ModelBase): """ - Metaclass for the ``ProductVariation`` model that dynamcally + Metaclass for the ``ProductVariation`` model that dynamically assigns an ``fields.OptionField`` for each option in the ``SHOP_PRODUCT_OPTIONS`` setting. """ @@ -678,7 +678,7 @@ def calculate_discount(self, discount): return discount.calculate(self.total_price()) total = Decimal("0") # Create a list of skus in the cart that are applicable to - # the discount, and total the discount for appllicable items. + # the discount, and total the discount for applicable items. lookup = {"product__in": products, "sku__in": self.skus()} discount_variations = ProductVariation.objects.filter(**lookup) discount_skus = discount_variations.values_list("sku", flat=True) diff --git a/tests/test_shop.py b/tests/test_shop.py index 8e0ed549..60eee576 100644 --- a/tests/test_shop.py +++ b/tests/test_shop.py @@ -408,7 +408,7 @@ def test_sale_save(self): """ Regression test for GitHub issue #24. Incorrect exception handle meant that in some cases (usually percentage discount) sale_prices were not - being applied to all products and their varitations. + being applied to all products and their variations. Note: This issues was only relevant using MySQL and with exceptions turned on (which is the default when DEBUG=True).