Add help text to indexing and metadata models

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-10-05 02:47:10 -04:00
parent 1779d482ac
commit f4293a7c06
4 changed files with 47 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-05 06:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('document_indexing', '0015_auto_20190429_1922'),
]
operations = [
migrations.AlterField(
model_name='index',
name='label',
field=models.CharField(help_text='Short description of this index.', max_length=128, unique=True, verbose_name='Label'),
),
]

View File

@@ -33,6 +33,7 @@ class Index(models.Model):
template and instance when resolved.
"""
label = models.CharField(
help_text=_('Short description of this index.'),
max_length=128, unique=True, verbose_name=_('Label')
)
slug = models.SlugField(
@@ -49,7 +50,8 @@ class Index(models.Model):
verbose_name=_('Enabled')
)
document_types = models.ManyToManyField(
related_name='indexes', to=DocumentType, verbose_name=_('Document types')
related_name='indexes', to=DocumentType,
verbose_name=_('Document types')
)
objects = IndexManager()

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-05 06:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('metadata', '0012_auto_20190612_0526'),
]
operations = [
migrations.AlterField(
model_name='metadatatype',
name='label',
field=models.CharField(help_text='Short description of this metadata type.', max_length=48, verbose_name='Label'),
),
]

View File

@@ -52,7 +52,10 @@ class MetadataType(models.Model):
),
unique=True, verbose_name=_('Name')
)
label = models.CharField(max_length=48, verbose_name=_('Label'))
label = models.CharField(
help_text=_('Short description of this metadata type.'),
max_length=48, verbose_name=_('Label')
)
default = models.CharField(
blank=True, max_length=128, null=True,
help_text=_(