mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Added help text for model fields
This commit is contained in:
43
InvenTree/company/migrations/0006_auto_20190508_2332.py
Normal file
43
InvenTree/company/migrations/0006_auto_20190508_2332.py
Normal file
@ -0,0 +1,43 @@
|
||||
# Generated by Django 2.2 on 2019-05-08 13:32
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('company', '0005_contact'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='contact',
|
||||
field=models.CharField(blank=True, help_text='Point of contact', max_length=100),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='description',
|
||||
field=models.CharField(help_text='Description of the company', max_length=500),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='email',
|
||||
field=models.EmailField(blank=True, help_text='Contact email address', max_length=254),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='is_customer',
|
||||
field=models.BooleanField(default=False, help_text='Do you sell items to this company?'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='is_supplier',
|
||||
field=models.BooleanField(default=True, help_text='Do you purchase items from this company?'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='company',
|
||||
name='phone',
|
||||
field=models.CharField(blank=True, help_text='Contact phone number', max_length=50),
|
||||
),
|
||||
]
|
@ -46,7 +46,7 @@ class Company(models.Model):
|
||||
name = models.CharField(max_length=100, blank=False, unique=True,
|
||||
help_text='Company name')
|
||||
|
||||
description = models.CharField(max_length=500)
|
||||
description = models.CharField(max_length=500, help_text='Description of the company')
|
||||
|
||||
website = models.URLField(blank=True, help_text='Company website URL')
|
||||
|
||||
@ -54,12 +54,12 @@ class Company(models.Model):
|
||||
blank=True, help_text='Company address')
|
||||
|
||||
phone = models.CharField(max_length=50,
|
||||
blank=True)
|
||||
blank=True, help_text='Contact phone number')
|
||||
|
||||
email = models.EmailField(blank=True)
|
||||
email = models.EmailField(blank=True, help_text='Contact email address')
|
||||
|
||||
contact = models.CharField(max_length=100,
|
||||
blank=True)
|
||||
blank=True, help_text='Point of contact')
|
||||
|
||||
URL = models.URLField(blank=True, help_text='Link to external company information')
|
||||
|
||||
@ -67,9 +67,9 @@ class Company(models.Model):
|
||||
|
||||
notes = models.TextField(blank=True)
|
||||
|
||||
is_customer = models.BooleanField(default=False)
|
||||
is_customer = models.BooleanField(default=False, help_text='Do you sell items to this company?')
|
||||
|
||||
is_supplier = models.BooleanField(default=True)
|
||||
is_supplier = models.BooleanField(default=True, help_text='Do you purchase items from this company?')
|
||||
|
||||
def __str__(self):
|
||||
""" Get string representation of a Company """
|
||||
|
Reference in New Issue
Block a user