comparison apps/bundle/models.py @ 187:4752861906b3

Added help_text to bundle description field Explains that a DESCRIPTION file can be used instead (if it exists)
author dellsystem <ilostwaldo@gmail.com>
date Sat, 27 Oct 2012 16:26:11 -0400
parents b711f0087709
children 1eb652aa501a
comparison
equal deleted inserted replaced
186:ff9c95239c3a 187:4752861906b3
20 name = models.SlugField(help_text=_("Your bundle will be accessible " + 20 name = models.SlugField(help_text=_("Your bundle will be accessible " +
21 "from a URL that uses the name you enter here, so choose wisely. " + 21 "from a URL that uses the name you enter here, so choose wisely. " +
22 "Acceptable characters: alphanumeric characters, hyphens, and " + 22 "Acceptable characters: alphanumeric characters, hyphens, and " +
23 "underscores.")) 23 "underscores."))
24 uploader = models.ForeignKey(User) 24 uploader = models.ForeignKey(User)
25 description = models.TextField(blank=True, null=True) 25 description = models.TextField(blank=True, null=True, help_text=_(
26 "Optional. If this field is left empty and the checkbox below "
27 "is ticked, then the DESCRIPTION file (if it exists) will be "
28 "used as the bundle description instead."))
26 octave_format = models.BooleanField('Is the bundle formatted according' 29 octave_format = models.BooleanField('Is the bundle formatted according'
27 ' to Octave package manager standards?', default=False) 30 ' to Octave package manager standards?', default=False)
28 # If octave_format is true and there is a DESCRIPTION file in the root 31 # If octave_format is true and there is a DESCRIPTION file in the root
29 description_file = models.ForeignKey('BundleFile', blank=True, null=True, 32 description_file = models.ForeignKey('BundleFile', blank=True, null=True,
30 related_name="described") 33 related_name="described")