Add help text to indexing and metadata models
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -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'),
|
||||
),
|
||||
]
|
||||
@@ -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()
|
||||
|
||||
20
mayan/apps/metadata/migrations/0013_auto_20191005_0646.py
Normal file
20
mayan/apps/metadata/migrations/0013_auto_20191005_0646.py
Normal 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'),
|
||||
),
|
||||
]
|
||||
@@ -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=_(
|
||||
|
||||
Reference in New Issue
Block a user