Refs #31541 -- Updated Redirect.new_path.help_text.

This commit is contained in:
Yash Saini 2020-05-07 22:40:39 +05:30 committed by Mariusz Felisiak
parent a8c0246ece
commit d5118d2abc
2 changed files with 28 additions and 1 deletions

View File

@ -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',
),
),
]

View File

@ -15,7 +15,10 @@ class Redirect(models.Model):
_('redirect to'), _('redirect to'),
max_length=200, max_length=200,
blank=True, 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: class Meta: