From 272ceb9584a68c7df464e8633c02eb4f997da092 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 28 Nov 2023 16:57:48 +0000 Subject: Refs #25778 -- Updated some links and references to HTTPS. --- docs/ref/forms/fields.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index a3e0bf1aba..8b07c6e2b2 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -173,13 +173,13 @@ field is initialized to a particular value. For example: >>> from django import forms >>> class CommentForm(forms.Form): ... name = forms.CharField(initial="Your name") - ... url = forms.URLField(initial="http://") + ... url = forms.URLField(initial="https://") ... comment = forms.CharField() ... >>> f = CommentForm(auto_id=False) >>> print(f)
Name:
-
Url:
+
Url:
Comment:
You may be thinking, why not just pass a dictionary of the initial values as @@ -193,7 +193,7 @@ and the HTML output will include any validation errors: ... url = forms.URLField() ... comment = forms.CharField() ... - >>> default_data = {"name": "Your name", "url": "http://"} + >>> default_data = {"name": "Your name", "url": "https://"} >>> f = CommentForm(default_data, auto_id=False) >>> print(f)
Name: @@ -201,7 +201,7 @@ and the HTML output will include any validation errors:
Url: - +
Comment: @@ -219,7 +219,7 @@ validation if a particular field's value is not given. ``initial`` values are >>> class CommentForm(forms.Form): ... name = forms.CharField(initial="Your name") - ... url = forms.URLField(initial="http://") + ... url = forms.URLField(initial="https://") ... comment = forms.CharField() ... >>> data = {"name": "", "url": "", "comment": "Foo"} -- cgit v1.3