summaryrefslogtreecommitdiff
path: root/docs/faq
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2025-07-25 10:24:17 +0100
committernessita <124304+nessita@users.noreply.github.com>2025-08-25 10:51:10 -0300
commitf81e6e3a53ee36e3f730a71aa55a5744982dd016 (patch)
tree44a4fdd64e2d1489d80b1af8bd1ac3c7af3ad0dd /docs/faq
parent4286a23df64f6ce3b9b6ed097f4d1aac7d9e0de4 (diff)
Refs #36485 -- Rewrapped docs to 79 columns line length.
Lines in the docs files were manually adjusted to conform to the 79 columns limit per line (plus newline), improving readability and consistency across the content.
Diffstat (limited to 'docs/faq')
-rw-r--r--docs/faq/admin.txt8
-rw-r--r--docs/faq/general.txt12
-rw-r--r--docs/faq/install.txt4
-rw-r--r--docs/faq/models.txt4
4 files changed, 15 insertions, 13 deletions
diff --git a/docs/faq/admin.txt b/docs/faq/admin.txt
index 2c75070ad0..fd82b9b03b 100644
--- a/docs/faq/admin.txt
+++ b/docs/faq/admin.txt
@@ -22,8 +22,8 @@ only allows access to users with those two fields both set to True.
How do I automatically set a field's value to the user who last edited the object in the admin?
===============================================================================================
-The :class:`~django.contrib.admin.ModelAdmin` class provides customization hooks
-that allow you to transform an object as it saved, using details from the
+The :class:`~django.contrib.admin.ModelAdmin` class provides customization
+hooks that allow you to transform an object as it saved, using details from the
request. By extracting the current user from the request, and customizing the
:meth:`~django.contrib.admin.ModelAdmin.save_model` hook, you can update an
object to reflect the user that edited it. See :ref:`the documentation on
@@ -33,8 +33,8 @@ How do I limit admin access so that objects can only be edited by the users who
=============================================================================================
The :class:`~django.contrib.admin.ModelAdmin` class also provides customization
-hooks that allow you to control the visibility and editability of objects in the
-admin. Using the same trick of extracting the user from the request, the
+hooks that allow you to control the visibility and editability of objects in
+the admin. Using the same trick of extracting the user from the request, the
:meth:`~django.contrib.admin.ModelAdmin.get_queryset` and
:meth:`~django.contrib.admin.ModelAdmin.has_change_permission` can be used to
control the visibility and editability of objects in the admin.
diff --git a/docs/faq/general.txt b/docs/faq/general.txt
index 3748d41295..203ea6f1e3 100644
--- a/docs/faq/general.txt
+++ b/docs/faq/general.txt
@@ -32,8 +32,9 @@ thrilled to be able to give something back to the open-source community.
What does "Django" mean, and how do you pronounce it?
=====================================================
-Django is named after `Django Reinhardt`_, a jazz manouche guitarist from the 1930s
-to early 1950s. To this day, he's considered one of the best guitarists of all time.
+Django is named after `Django Reinhardt`_, a jazz manouche guitarist from the
+1930s to early 1950s. To this day, he's considered one of the best guitarists
+of all time.
Listen to his music. You'll like it.
@@ -185,9 +186,10 @@ corresponds to a web page on the official Django site.
Because the documentation is :source:`stored in revision control <docs>`, you
can browse documentation changes just like you can browse code changes.
-Technically, the docs on Django's site are generated from the latest development
-versions of those reST documents, so the docs on the Django site may offer more
-information than the docs that come with the latest Django release.
+Technically, the docs on Django's site are generated from the latest
+development versions of those reST documents, so the docs on the Django site
+may offer more information than the docs that come with the latest Django
+release.
How do I cite Django?
=====================
diff --git a/docs/faq/install.txt b/docs/faq/install.txt
index 8b2aceab74..1cdf40fd78 100644
--- a/docs/faq/install.txt
+++ b/docs/faq/install.txt
@@ -8,8 +8,8 @@ How do I get started?
#. `Download the code`_.
#. Install Django (read the :doc:`installation guide </intro/install>`).
#. Walk through the :doc:`tutorial </intro/tutorial01>`.
-#. Check out the rest of the :doc:`documentation </index>`, and `ask questions`_ if you
- run into trouble.
+#. Check out the rest of the :doc:`documentation </index>`, and
+ `ask questions`_ if you run into trouble.
.. _`Download the code`: https://www.djangoproject.com/download/
.. _ask questions: https://www.djangoproject.com/community/
diff --git a/docs/faq/models.txt b/docs/faq/models.txt
index 0cfbfd638a..92d2c69cf8 100644
--- a/docs/faq/models.txt
+++ b/docs/faq/models.txt
@@ -27,8 +27,8 @@ the following:
``connection.queries`` includes all SQL statements -- INSERTs, UPDATES,
SELECTs, etc. Each time your app hits the database, the query will be recorded.
-If you are using :doc:`multiple databases</topics/db/multi-db>`, you can use the
-same interface on each member of the ``connections`` dictionary:
+If you are using :doc:`multiple databases</topics/db/multi-db>`, you can use
+the same interface on each member of the ``connections`` dictionary:
.. code-block:: pycon