add textfield notes to Order for internal orga notes about the order

This commit is contained in:
Thomas Steen Rasmussen 2018-08-27 12:44:53 +02:00
parent f396708156
commit 2c1e5f12fe
2 changed files with 24 additions and 0 deletions

View 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.'),
),
]

View File

@ -133,6 +133,12 @@ class Order(CreatedUpdatedModel):
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()
def __str__(self):