summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: