diff options
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 |
commit | 02e61229b2d2a2bbdf05e4595235945335c5ad05 (patch) | |
tree | 64f3249d549501235bc26a5d98920dc6ea07144f /ishtar_common/models.py | |
parent | 016428a81db6b90ba2694059bca4b9cc593c7704 (diff) | |
download | Ishtar-02e61229b2d2a2bbdf05e4595235945335c5ad05.tar.bz2 Ishtar-02e61229b2d2a2bbdf05e4595235945335c5ad05.zip |
Admin: prepopulate txt_idx with label
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 6 |
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"" |