From 310d4b5f07c9633352756c50397a24792e12e059 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 15 Jul 2019 23:53:25 +1000 Subject: [PATCH] Added descriptive help text --- .../migrations/0009_auto_20190715_2351.py | 23 +++++++++++++++++++ InvenTree/stock/models.py | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 InvenTree/stock/migrations/0009_auto_20190715_2351.py diff --git a/InvenTree/stock/migrations/0009_auto_20190715_2351.py b/InvenTree/stock/migrations/0009_auto_20190715_2351.py new file mode 100644 index 0000000000..230ca68401 --- /dev/null +++ b/InvenTree/stock/migrations/0009_auto_20190715_2351.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.2 on 2019-07-15 13:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('stock', '0008_stockitemtracking_url'), + ] + + operations = [ + migrations.AlterField( + model_name='stockitemtracking', + name='notes', + field=models.CharField(blank=True, help_text='Entry notes', max_length=512), + ), + migrations.AlterField( + model_name='stockitemtracking', + name='title', + field=models.CharField(help_text='Tracking entry title', max_length=250), + ), + ] diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index fec11f0211..53abe2de95 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -526,9 +526,9 @@ class StockItemTracking(models.Model): date = models.DateTimeField(auto_now_add=True, editable=False) - title = models.CharField(blank=False, max_length=250) + title = models.CharField(blank=False, max_length=250, help_text='Tracking entry title') - notes = models.TextField(blank=True) + notes = models.CharField(blank=True, max_length=512, help_text='Entry notes') URL = models.URLField(blank=True, help_text='Link to external page for further information')