8000 Docs #36391 -- Added RawSQL usage section to ORM expressions guide. by zebra0345 · Pull Request #19475 · django/django · GitHub
[go: up one dir, main page]

Skip to content

Docs #36391 -- Added RawSQL usage section to ORM expressions guide. #19475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

zebra0345
Copy link
Contributor

Trac ticket number

#36391

Branch description

This PR adds documentation for using RawSQL in the "Performing raw SQL queries" guide (topics/db/sql.txt).

It introduces RawSQL as an ORM expression suitable for use in annotate() and filter(), with an example and a warning about SQL injection risks. The section complements existing documentation for Manager.raw() and cursor.execute().

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

Please let me know if any changes are needed — I’d appreciate suggestions for improving alignment with Django’s documentation tone and structure. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0