Fix migration for status

This commit is contained in:
mcbloch 2021-10-12 21:43:10 +02:00
parent 077eb8e02d
commit 717a5c3194
3 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.3 on 2021-10-12 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mordor', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='order',
name='state',
field=models.IntegerField(choices=[(0, 'open'), (1, 'besteld'), (2, 'geleverd'), (3, 'afgehaald')], default=0),
),
]

View file

@ -11,7 +11,7 @@ class TimeStampMixin(models.Model):
class Order(TimeStampMixin):
OPEN, ORDERED, DELIVERED = range(3)
OPEN, ORDERED, DELIVERED, COLLECTED = range(4)
ORDER_STATES = {OPEN: "open", ORDERED: "besteld", DELIVERED: "geleverd", COLLECTED: "afgehaald"}
amount_33 = models.IntegerField(default=0, blank=True)

View file

@ -0,0 +1 @@
#!/usr/bin/env python