summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-04 20:21:55 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-04 20:21:55 +0200
commit80de5825151d6ba5843d032f10c7b88109a51a24 (patch)
tree64f3249d549501235bc26a5d98920dc6ea07144f /ishtar_common/models.py
parent695fddc02b5e095d3031c127b2c4bd49d4d871a8 (diff)
downloadIshtar-80de5825151d6ba5843d032f10c7b88109a51a24.tar.bz2
Ishtar-80de5825151d6ba5843d032f10c7b88109a51a24.zip
Admin: prepopulate txt_idx with label
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 5afde8ffb..131f08323 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -422,7 +422,11 @@ class GeneralType(Cached, models.Model):
label = models.CharField(_(u"Label"), max_length=100)
txt_idx = models.CharField(
_(u"Textual ID"), validators=[validate_slug], max_length=100,
- unique=True)
+ unique=True,
+ help_text=_(
+ u"The slug is the standardized version of the name. It contains "
+ u"only lowercase letters, numbers and hyphens. Each slug must "
+ u"be unique."))
comment = models.TextField(_(u"Comment"), blank=True, null=True)
available = models.BooleanField(_(u"Available"), default=True)
HELP_TEXT = u""