]> git.parisson.com Git - diggersdigest.git/commitdiff
fix product order
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 1 Feb 2016 00:40:19 +0000 (01:40 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 1 Feb 2016 00:40:19 +0000 (01:40 +0100)
app/diggersdigest/settings.py

index f875cf022ad53d9922795735586eae442e337101..322c7256a1a5f2eb7c62bc04ca284b7602e7ea23 100644 (file)
@@ -171,6 +171,11 @@ SHOP_USE_VARIATIONS = False
 
 SHOP_USE_RATINGS = False
 
+SHOP_PRODUCT_SORT_OPTIONS =  (
+    ('Recently added', '-publish_date'), 
+    ('Least expensive', 'unit_price'), 
+    ('Most expensive', '-unit_price'))
+
 # Add Migration Module path see : https://github.com/stephenmcd/mezzanine/blob/master/docs/model-customization.rst#field-injection-caveats
 MIGRATION_MODULES = {
     "shop": "diggersdigest.migrations.shop",
@@ -365,7 +370,7 @@ INSTALLED_APPS = (
     "mezzanine.galleries",
     "mezzanine.twitter",
     "mezzanine.accounts",
-    "mezzanine.mobile",
+#    "mezzanine.mobile",
     "payments.multipayments",
     'paypal.standard.ipn',
     "records",