From 4a2fa36e30859e643902a7992f7daa2924182e12 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 23 Feb 2020 20:02:33 +1100 Subject: [PATCH] Allow 'notes' field in Part object to be blank --- .../migrations/0029_auto_20200223_0901.py | 19 +++++++++++++++++++ InvenTree/part/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 InvenTree/part/migrations/0029_auto_20200223_0901.py diff --git a/InvenTree/part/migrations/0029_auto_20200223_0901.py b/InvenTree/part/migrations/0029_auto_20200223_0901.py new file mode 100644 index 0000000000..2ed86c5101 --- /dev/null +++ b/InvenTree/part/migrations/0029_auto_20200223_0901.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2.9 on 2020-02-23 09:01 + +from django.db import migrations +import markdownx.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('part', '0028_auto_20200203_1007'), + ] + + operations = [ + migrations.AlterField( + model_name='part', + name='notes', + field=markdownx.models.MarkdownxField(blank=True, help_text='Part notes - supports Markdown formatting'), + ), + ] diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index d21a250c31..59bcbe57b1 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -438,7 +438,7 @@ class Part(models.Model): virtual = models.BooleanField(default=False, help_text=_('Is this a virtual part, such as a software product or license?')) - notes = MarkdownxField(help_text=_('Part notes - supports Markdown formatting')) + notes = MarkdownxField(blank=True, help_text=_('Part notes - supports Markdown formatting')) bom_checksum = models.CharField(max_length=128, blank=True, help_text=_('Stored BOM checksum'))