1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

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.
This commit is contained in:
David Smith
2025-07-25 10:24:17 +01:00
committed by nessita
parent 4286a23df6
commit f81e6e3a53
230 changed files with 3250 additions and 2914 deletions

View File

@@ -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.

View File

@@ -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?
=====================

View File

@@ -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/

View File

@@ -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