mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Company description is no longer a required field
This commit is contained in:
parent
c7e1ac5648
commit
e6bd91c9e2
18
InvenTree/company/migrations/0033_auto_20210410_1528.py
Normal file
18
InvenTree/company/migrations/0033_auto_20210410_1528.py
Normal file
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
@ -95,7 +95,12 @@ class Company(models.Model):
|
|||||||
help_text=_('Company name'),
|
help_text=_('Company name'),
|
||||||
verbose_name=_('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'))
|
website = models.URLField(blank=True, verbose_name=_('Website'), help_text=_('Company website URL'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user