# HG changeset patch # User dellsystem # Date 1350707389 14400 # Node ID a57d15b044a742d2b92a798c3f7190aad0df1403 # Parent 3be23e2e8fe7360824b5ed589b5dc898984c61b6 Add help_text to name field for bundles Explains that the name field is meant to hold a slug, etc. diff -r 3be23e2e8fe7 -r a57d15b044a7 apps/bundle/models.py --- a/apps/bundle/models.py Sat Oct 20 00:20:22 2012 -0400 +++ b/apps/bundle/models.py Sat Oct 20 00:29:49 2012 -0400 @@ -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)