Skip to content

Commit

Permalink
Change the initial migration so that Order.status references settings…
Browse files Browse the repository at this point in the history
….SHOP_ORDER_STATUS_CHOICES, rather than the literal values.
  • Loading branch information
ctrengove committed Nov 7, 2015
1 parent 385c9cc commit f354f72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cartridge/shop/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import mezzanine.core.fields
import cartridge.shop.fields

from mezzanine.conf import settings

class Migration(migrations.Migration):

Expand Down Expand Up @@ -118,7 +119,7 @@ class Migration(migrations.Migration):
('discount_total', cartridge.shop.fields.MoneyField(null=True, verbose_name='Discount total', max_digits=10, decimal_places=2, blank=True)),
('total', cartridge.shop.fields.MoneyField(null=True, verbose_name='Order total', max_digits=10, decimal_places=2, blank=True)),
('transaction_id', models.CharField(max_length=255, null=True, verbose_name='Transaction ID', blank=True)),
('status', models.IntegerField(default=1, verbose_name='Status', choices=[(1, 'Unprocessed'), (2, 'Processed')])),
('status', models.IntegerField(default=settings.SHOP_ORDER_STATUS_CHOICES[0][0], verbose_name='Status', choices=settings.SHOP_ORDER_STATUS_CHOICES)),
('site', models.ForeignKey(editable=False, to='sites.Site')),
],
options={
Expand Down

0 comments on commit f354f72

Please sign in to comment.