From 69d15708a34c0c9815b00657e1d00a286dfdecfc Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Thu, 19 Jul 2018 10:16:38 +0100 Subject: [PATCH] Improve consistency of help text for slack --- opentech/apply/users/forms.py | 2 +- opentech/apply/users/migrations/0007_user_slack.py | 2 +- opentech/apply/users/models.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opentech/apply/users/forms.py b/opentech/apply/users/forms.py index 34fc19042..88e7bdbc4 100644 --- a/opentech/apply/users/forms.py +++ b/opentech/apply/users/forms.py @@ -39,7 +39,7 @@ class ProfileForm(forms.ModelForm): if slack: slack = slack.strip() if ' ' in slack: - raise forms.ValidationError('Slack IDs must not include spaces') + raise forms.ValidationError('Slack names must not include spaces') if not slack.startswith('@'): slack = '@' + slack diff --git a/opentech/apply/users/migrations/0007_user_slack.py b/opentech/apply/users/migrations/0007_user_slack.py index 65336119a..177e18168 100644 --- a/opentech/apply/users/migrations/0007_user_slack.py +++ b/opentech/apply/users/migrations/0007_user_slack.py @@ -13,6 +13,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='user', name='slack', - field=models.CharField(blank=True, help_text='This is the name we should "@" when sending notifications', max_length=50, verbose_name='Slack name'), + field=models.CharField(blank=True, help_text='This is the name we should "@mention" when sending notifications', max_length=50, verbose_name='Slack name'), ), ] diff --git a/opentech/apply/users/models.py b/opentech/apply/users/models.py index 126002207..62e753ef3 100644 --- a/opentech/apply/users/models.py +++ b/opentech/apply/users/models.py @@ -59,7 +59,7 @@ class User(AbstractUser): slack = models.CharField( verbose_name='Slack name', blank=True, - help_text='This is the name we should "@" when sending notifications', + help_text='This is the name we should "@mention" when sending notifications', max_length=50, ) -- GitLab