Merge pull request #658 from SchrodingersGat/part-notes-fix

Allow 'notes' field in Part object to be blank
This commit is contained in:
Oliver 2020-02-23 20:06:26 +11:00 committed by GitHub
commit 1fa4e7f5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'))