diff --git a/InvenTree/company/migrations/0035_auto_20210408_1718.py b/InvenTree/company/migrations/0035_auto_20210408_1718.py new file mode 100644 index 0000000000..17da23415b --- /dev/null +++ b/InvenTree/company/migrations/0035_auto_20210408_1718.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.7 on 2021-04-08 17:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('company', '0034_supplierpart_update'), + ] + + 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'), + ), + ] diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index 58a26498ba..dd68c976fd 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -97,7 +97,7 @@ class Company(models.Model): 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, blank=True, verbose_name=_('Company description'), help_text=_('Description of the company')) website = models.URLField(blank=True, verbose_name=_('Website'), help_text=_('Company website URL')) diff --git a/InvenTree/company/templates/company/detail.html b/InvenTree/company/templates/company/detail.html index b803fc5852..8e41b2d639 100644 --- a/InvenTree/company/templates/company/detail.html +++ b/InvenTree/company/templates/company/detail.html @@ -21,11 +21,13 @@ {% trans "Company Name" %} {{ company.name }} + {% if company.description %} {% trans "Description" %} {{ company.description }} + {% endif %} {% trans "Website" %}