#34485 closed Cleanup/optimization (duplicate)

Update examples by using f-strings instead of %

Reported by: Pravesh Aryal Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords: documentation,
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The page https://docs.djangoproject.com/en/4.2/topics/db/examples/one_to_one/ has examples with str methods using older python % instead of newer and pythonic f-strings.

Attachments (1)

Screenshot from 2023-04-12 02-01-13.png (149.4 KB ) - added by Pravesh Aryal 13 months ago.

Download all attachments as: .zip

Change History (2)

by Pravesh Aryal, 13 months ago

comment:1 by David Smith, 13 months ago

Resolution: duplicate
Status: newclosed

This seems to me like a duicate of #33034

Note: See TracTickets for help on using tickets.
Back to Top