#35069: Typo in Form.label_suffix example in docs. --------------------------------------+------------------------------------ Reporter: Zowie Beha | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 5.0 Severity: Normal | Resolution: Keywords: form, documentation | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------------+------------------------------------ Changes (by Mariusz Felisiak):
* stage: Unreviewed => Accepted Comment: Good catch, it looks like a typo in the 9ac97e7eb5a74f813012715c7598c8608e78e178: {{{#!diff diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 7bec9b120b..28cd452c4e 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -909,7 +909,7 @@ It's possible to customize that character, or omit it entirely, using the <div><label for="id_for_cc_myself">Cc myself</label><input type="checkbox" name="cc_myself" id="id_for_cc_myself"></div> >>> f = ContactForm(auto_id="id_for_%s", label_suffix=" ->") >>> print(f) - <div><label for="id_for_subject">Subject:</label><input type="text" name="subject" maxlength="100" required id="id_for_subject"></div> + <div><label for="id_for_subject">Subject -></label><input type="text" name="subject" maxlength="100" required id="id_for_subject"></div> <div><label for="id_for_message">Message -></label><textarea name="message" cols="40" rows="10" required id="id_for_message"></textarea></div> <div><label for="id_for_sender">Sender -></label><input type="email" name="sender" required id="id_for_sender"></div> <div><label for="id_for_cc_myself">Cc myself -></label><input type="checkbox" name="cc_myself" id="id_for_cc_myself"></div> }}} Would you like to prepare a patch (via GitHub PR)? For the future, tickets are not necessary to fix typos in docs. -- Ticket URL: <https://code.djangoproject.com/ticket/35069#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018cb727e46c-d26f986f-a88c-4f7a-93f6-b0e82bc9990d-000000%40eu-central-1.amazonses.com.