From 8342607eca6251ce4b72813e726c18d9789a72e9 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 4 Nov 2011 11:44:08 -0700 Subject: [PATCH] one cent price, for app preview only (bug 698490) --- migrations/269-one-cent-price.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/269-one-cent-price.py diff --git a/migrations/269-one-cent-price.py b/migrations/269-one-cent-price.py new file mode 100644 index 0000000000..dbc86d9a3f --- /dev/null +++ b/migrations/269-one-cent-price.py @@ -0,0 +1,11 @@ +from decimal import Decimal +from django.conf import settings +from market.models import Price + + +def run(): + if not settings.APP_PREVIEW: + return + + Price.objects.all().delete() + Price.objects.create(price=Decimal('0.01'), name='Tier 1')