Fix migration for status
This commit is contained in:
parent
077eb8e02d
commit
717a5c3194
3 changed files with 20 additions and 1 deletions
18
mordor/migrations/0002_alter_order_state.py
Normal file
18
mordor/migrations/0002_alter_order_state.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -11,7 +11,7 @@ class TimeStampMixin(models.Model):
|
||||||
|
|
||||||
|
|
||||||
class Order(TimeStampMixin):
|
class Order(TimeStampMixin):
|
||||||
OPEN, ORDERED, DELIVERED = range(3)
|
OPEN, ORDERED, DELIVERED, COLLECTED = range(4)
|
||||||
ORDER_STATES = {OPEN: "open", ORDERED: "besteld", DELIVERED: "geleverd", COLLECTED: "afgehaald"}
|
ORDER_STATES = {OPEN: "open", ORDERED: "besteld", DELIVERED: "geleverd", COLLECTED: "afgehaald"}
|
||||||
|
|
||||||
amount_33 = models.IntegerField(default=0, blank=True)
|
amount_33 = models.IntegerField(default=0, blank=True)
|
||||||
|
|
1
mordor/templates/mordor/manage.py
Normal file
1
mordor/templates/mordor/manage.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#!/usr/bin/env python
|
Loading…
Reference in a new issue