From d5118d2abc62eecbbce14b398ed7203e102444ae Mon Sep 17 00:00:00 2001 From: Yash Saini Date: Thu, 7 May 2020 22:40:39 +0530 Subject: [PATCH] Refs #31541 -- Updated Redirect.new_path.help_text. --- .../0002_alter_redirect_new_path_help_text.py | 24 +++++++++++++++++++ django/contrib/redirects/models.py | 5 +++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 django/contrib/redirects/migrations/0002_alter_redirect_new_path_help_text.py diff --git a/django/contrib/redirects/migrations/0002_alter_redirect_new_path_help_text.py b/django/contrib/redirects/migrations/0002_alter_redirect_new_path_help_text.py new file mode 100644 index 0000000000..afbd19e415 --- /dev/null +++ b/django/contrib/redirects/migrations/0002_alter_redirect_new_path_help_text.py @@ -0,0 +1,24 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('redirects', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='redirect', + name='new_path', + field=models.CharField( + blank=True, + help_text=( + 'This can be either an absolute path (as above) or a full ' + 'URL starting with a scheme such as “https://”.' + ), + max_length=200, + verbose_name='redirect to', + ), + ), + ] diff --git a/django/contrib/redirects/models.py b/django/contrib/redirects/models.py index a9f17be5eb..a200b88f94 100644 --- a/django/contrib/redirects/models.py +++ b/django/contrib/redirects/models.py @@ -15,7 +15,10 @@ class Redirect(models.Model): _('redirect to'), max_length=200, blank=True, - help_text=_('This can be either an absolute path (as above) or a full URL starting with “http://”.'), + help_text=_( + 'This can be either an absolute path (as above) or a full URL ' + 'starting with a scheme such as “https://”.' + ), ) class Meta: