mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Allow 'notes' field in Part object to be blank
This commit is contained in:
		
							
								
								
									
										19
									
								
								InvenTree/part/migrations/0029_auto_20200223_0901.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								InvenTree/part/migrations/0029_auto_20200223_0901.py
									
									
									
									
									
										Normal 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'), | ||||||
|  |         ), | ||||||
|  |     ] | ||||||
| @@ -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?')) |     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')) |     bom_checksum = models.CharField(max_length=128, blank=True, help_text=_('Stored BOM checksum')) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user