summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnders Hovmöller <anders.hovmoller@dryft.se>2024-12-03 01:54:48 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2024-12-02 21:56:26 -0300
commit5b4d949d7ca118e70985ffc53f8191b766591c12 (patch)
treef996b7bb8a551557aa7b2b5dc5fe958c3fe805c1 /docs
parent6e3e7353e00b64c61674ac7e0edc7cee761c9b15 (diff)
[5.1.x] Removed question marks from headings in docs/topics/db/fixtures.txt.
Backport of 871e1ee5ff0b75aee5dd1bd3e88e349ca0ddc60d from main.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/fixtures.txt29
1 files changed, 13 insertions, 16 deletions
diff --git a/docs/topics/db/fixtures.txt b/docs/topics/db/fixtures.txt
index ac5b34dae0..6066d34f8e 100644
--- a/docs/topics/db/fixtures.txt
+++ b/docs/topics/db/fixtures.txt
@@ -4,28 +4,25 @@
Fixtures
========
-.. seealso::
-
- * :doc:`/howto/initial-data`
-
-What is a fixture?
-==================
-
A *fixture* is a collection of files that contain the serialized contents of
the database. Each fixture has a unique name, and the files that comprise the
fixture can be distributed over multiple directories, in multiple applications.
-How to produce a fixture?
-=========================
+.. seealso::
+
+ * :doc:`/howto/initial-data`
+
+How to produce a fixture
+========================
Fixtures can be generated by :djadmin:`manage.py dumpdata <dumpdata>`. It's
also possible to generate custom fixtures by directly using :doc:`serialization
tools </topics/serialization>` or even by handwriting them.
-How to use a fixture?
-=====================
+How to use a fixture
+====================
-Fixtures can be used to pre-populate database with data for
+Fixtures can be used to pre-populate the database with data for
:ref:`tests <topics-testing-fixtures>`:
.. code-block:: python
@@ -40,8 +37,8 @@ or to provide some :ref:`initial data <initial-data-via-fixtures>` using the
django-admin loaddata <fixture label>
-Where Django looks for fixtures?
-================================
+How fixtures are discovered
+===========================
Django will search in these locations for fixtures:
@@ -116,8 +113,8 @@ example).
.. _MySQL: https://dev.mysql.com/doc/refman/en/constraint-foreign-key.html
-How fixtures are saved to the database?
-=======================================
+How fixtures are saved to the database
+======================================
When fixture files are processed, the data is saved to the database as is.
Model defined :meth:`~django.db.models.Model.save` methods are not called, and