From 709831872dcc963a661ab01a1e5d355df82c2bee Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 9 Jun 2014 22:10:00 -0700 Subject: [PATCH] help text for deployment sites --- planetstack/core/admin.py | 1 + planetstack/core/models/site.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/planetstack/core/admin.py b/planetstack/core/admin.py index 8bf7976..0e38d43 100644 --- a/planetstack/core/admin.py +++ b/planetstack/core/admin.py @@ -478,6 +478,7 @@ class DeploymentAdminForm(forms.ModelForm): sites = forms.ModelMultipleChoiceField( queryset=Site.objects.all(), required=False, + help_text="Select which sites are allowed to host nodes in this deployment", widget=FilteredSelectMultiple( verbose_name=('Sites'), is_stacked=False ) diff --git a/planetstack/core/models/site.py b/planetstack/core/models/site.py index a97de3e..eea62fe 100644 --- a/planetstack/core/models/site.py +++ b/planetstack/core/models/site.py @@ -21,7 +21,7 @@ class Site(PlCoreBase): abbreviated_name = models.CharField(max_length=80) #deployments = models.ManyToManyField('Deployment', blank=True, related_name='sites') - deployments = models.ManyToManyField('Deployment', through='SiteDeployments', blank=True) + deployments = models.ManyToManyField('Deployment', through='SiteDeployments', blank=True, help_text="Select which sites are allowed to host nodes in this deployment") tags = generic.GenericRelation(Tag) def __unicode__(self): return u'%s' % (self.name) -- 2.47.0