summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYash Saini <yash.saini275@gmail.com>2020-05-07 22:40:39 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-06-23 12:36:53 +0200
commitd5118d2abc62eecbbce14b398ed7203e102444ae (patch)
tree4afeba4e9265d57a4a6e1bfddb46028202d46d3b
parenta8c0246ece0716cea2ea6c1b313d4d93a10ee333 (diff)
Refs #31541 -- Updated Redirect.new_path.help_text.
-rw-r--r--django/contrib/redirects/migrations/0002_alter_redirect_new_path_help_text.py24
-rw-r--r--django/contrib/redirects/models.py5
2 files changed, 28 insertions, 1 deletions
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: