Allow 'notes' field in Part object to be blank

This commit is contained in:
Oliver Walters 2020-02-23 20:02:33 +11:00
parent 6c415bc922
commit 4a2fa36e30
2 changed files with 20 additions and 1 deletions

View File

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

View File

@ -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'))