From 2c1e5f12fe5b51db63a3ec03865c7f37b4f13235 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 27 Aug 2018 12:44:53 +0200 Subject: [PATCH] add textfield notes to Order for internal orga notes about the order --- src/shop/migrations/0057_order_notes.py | 18 ++++++++++++++++++ src/shop/models.py | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 src/shop/migrations/0057_order_notes.py diff --git a/src/shop/migrations/0057_order_notes.py b/src/shop/migrations/0057_order_notes.py new file mode 100644 index 00000000..2e0aee52 --- /dev/null +++ b/src/shop/migrations/0057_order_notes.py @@ -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.'), + ), + ] diff --git a/src/shop/models.py b/src/shop/models.py index ef5ea1d9..e4ee2751 100644 --- a/src/shop/models.py +++ b/src/shop/models.py @@ -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):