Skip to content
This repository
Browse code

better help texts for tag fields on article and code models

  • Loading branch information...
commit 7cb4e618346781450b4bbee6c61efdac71f136bd 1 parent 7319d92
Ryan Pitts ryanpitts authored

Showing 2 changed files with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +3 3 source/articles/models.py
  2. +3 3 source/code/models.py
6 source/articles/models.py
@@ -46,9 +46,9 @@ class Article(CachingMixin, models.Model):
46 46 people = models.ManyToManyField(Person, blank=True, null=True)
47 47 organizations = models.ManyToManyField(Organization, blank=True, null=True)
48 48 code = models.ManyToManyField(Code, blank=True, null=True)
49   - tags = TaggableManager(blank=True)
50   - technology_tags = TaggableManager(verbose_name='Technology Tags', through=TechnologyTaggedItem, blank=True)
51   - concept_tags = TaggableManager(verbose_name='Concept Tags', through=ConceptTaggedItem, blank=True)
  49 + tags = TaggableManager(blank=True, help_text='Automatic combined list of Technology Tags and Concept Tags, for easy searching')
  50 + technology_tags = TaggableManager(verbose_name='Technology Tags', help_text='A comma-separated list of tags describing relevant technologies', through=TechnologyTaggedItem, blank=True)
  51 + concept_tags = TaggableManager(verbose_name='Concept Tags', help_text='A comma-separated list of tags describing relevant concepts', through=ConceptTaggedItem, blank=True)
52 52 objects = models.Manager()
53 53 live_objects = LiveArticleManager()
54 54 disable_auto_linebreaks = models.BooleanField(default=False, help_text='Check this if body and article blocks already have HTML paragraph tags.')
6 source/code/models.py
@@ -34,9 +34,9 @@ class Code(CachingMixin, models.Model):
34 34 repo_forks = models.PositiveIntegerField(blank=True, null=True)
35 35 repo_watchers = models.PositiveIntegerField(blank=True, null=True)
36 36 repo_description = models.TextField(blank=True)
37   - tags = TaggableManager(blank=True)
38   - technology_tags = TaggableManager(verbose_name='Technology Tags', through=TechnologyTaggedItem, blank=True)
39   - concept_tags = TaggableManager(verbose_name='Concept Tags', through=ConceptTaggedItem, blank=True)
  37 + tags = TaggableManager(blank=True, help_text='Automatic combined list of Technology Tags and Concept Tags, for easy searching')
  38 + technology_tags = TaggableManager(verbose_name='Technology Tags', help_text='A comma-separated list of tags describing relevant technologies', through=TechnologyTaggedItem, blank=True)
  39 + concept_tags = TaggableManager(verbose_name='Concept Tags', help_text='A comma-separated list of tags describing relevant concepts', through=ConceptTaggedItem, blank=True)
40 40 objects = models.Manager()
41 41 live_objects = LiveCodeManager()
42 42

0 comments on commit 7cb4e61

Please sign in to comment.
Something went wrong with that request. Please try again.