Mercurial > hg > agora
changeset 171:a57d15b044a7
Add help_text to name field for bundles
Explains that the name field is meant to hold a slug, etc.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sat, 20 Oct 2012 00:29:49 -0400 |
parents | 3be23e2e8fe7 |
children | 5e10ea8052b5 |
files | apps/bundle/models.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/apps/bundle/models.py +++ b/apps/bundle/models.py @@ -2,6 +2,7 @@ from django.db import models from django.contrib.auth.models import User +from django.utils.translation import ugettext_lazy as _ from pygments import lexers, highlight, formatters, util from mptt.models import MPTTModel, TreeForeignKey from sizefield.models import FileSizeField @@ -16,7 +17,10 @@ unique_together = ('uploader','name') ordering = ['-pub_date'] - name = models.SlugField() + name = models.SlugField(help_text=_("Your bundle will be accessible " + + "from a URL that uses the name you enter here, so choose wisely. " + + "Acceptable characters: alphanumeric characters, hyphens, and " + + "underscores.")) uploader = models.ForeignKey(User) description = models.TextField(max_length=32728) free_license = models.ForeignKey(FreeLicense, default=1)