1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00

[5.1.x] Refs #35502 -- Clarified models.py file path in docs/topics/db/queries.txt.

Backport of fc1119e8be705766b0277a0ebf8ad637f9d068c2 from main.
This commit is contained in:
Natalia 2024-08-07 16:08:21 -03:00
parent 2bd546957d
commit a313e203e0

View File

@ -62,7 +62,8 @@ class represents a particular record in the database table.
To create an object, instantiate it using keyword arguments to the model class, To create an object, instantiate it using keyword arguments to the model class,
then call :meth:`~django.db.models.Model.save` to save it to the database. then call :meth:`~django.db.models.Model.save` to save it to the database.
Assuming models live in a file ``mysite/blog/models.py``, here's an example: Assuming models live in a ``models.py`` file inside a ``blog`` Django app, here
is an example:
.. code-block:: pycon .. code-block:: pycon