Skip to content

Commit

Permalink
Merge pull request #1450 from SchrodingersGat/company-description-opt…
Browse files Browse the repository at this point in the history
…ional

Company description is no longer a required field
  • Loading branch information
SchrodingersGat authored Apr 10, 2021
2 parents c7e1ac5 + e6bd91c commit e011faa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions InvenTree/company/migrations/0033_auto_20210410_1528.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.0.7 on 2021-04-10 05:28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('company', '0032_auto_20210403_1837'),
]

operations = [
migrations.AlterField(
model_name='company',
name='description',
field=models.CharField(blank=True, help_text='Description of the company', max_length=500, verbose_name='Company description'),
),
]
7 changes: 6 additions & 1 deletion InvenTree/company/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ class Meta:
help_text=_('Company name'),
verbose_name=_('Company name'))

description = models.CharField(max_length=500, verbose_name=_('Company description'), help_text=_('Description of the company'))
description = models.CharField(
max_length=500,
verbose_name=_('Company description'),
help_text=_('Description of the company'),
blank=True,
)

website = models.URLField(blank=True, verbose_name=_('Website'), help_text=_('Company website URL'))

Expand Down

0 comments on commit e011faa

Please sign in to comment.