add textfield notes to Order for internal orga notes about the order
This commit is contained in:
parent
f396708156
commit
2c1e5f12fe
18
src/shop/migrations/0057_order_notes.py
Normal file
18
src/shop/migrations/0057_order_notes.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.0.4 on 2018-08-27 10:40
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('shop', '0056_auto_20180827_1020'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='order',
|
||||||
|
name='notes',
|
||||||
|
field=models.TextField(blank=True, default='', help_text='Any internal notes about this order can be entered here. They will not be printed on the invoice or shown to the customer in any way.'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -133,6 +133,12 @@ class Order(CreatedUpdatedModel):
|
||||||
blank=True
|
blank=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
notes = models.TextField(
|
||||||
|
help_text='Any internal notes about this order can be entered here. They will not be printed on the invoice or shown to the customer in any way.',
|
||||||
|
default='',
|
||||||
|
blank=True,
|
||||||
|
)
|
||||||
|
|
||||||
objects = OrderQuerySet.as_manager()
|
objects = OrderQuerySet.as_manager()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in a new issue