Skip to content

Commit da3ac8c

Browse files
committed
edits
1 parent 158ff3d commit da3ac8c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/interact-data/crud.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ of ``141``:
115115
The ``create()`` method allows you to create a new ``Movie`` object
116116
and save the object as a collection document in one method call.
117117
To view an example that creates an object then saves it to the
118-
database by calling ``save()``, see the :ref:`django-get-started-write`
119-
step of the Getting Started tutorial.
118+
database by calling ``save()``, see `create() <https://docs.djangoproject.com/en/5.1/ref/models/querysets/#create>`__
119+
in the Django documentation.
120120

121121
.. _django-crud-read:
122122

@@ -147,8 +147,7 @@ returns ``Movie`` objects that represent movies released on January 1, 2000:
147147
from django.utils import timezone
148148
from datetime import datetime
149149

150-
Movie.objects.filter(released=timezone.make_aware(datetime(2000, 1, 1, 0, 0),
151-
timezone.get_current_timezone()))
150+
Movie.objects.filter(released=timezone.make_aware(datetime(2000, 1, 1)))
152151

153152
.. output::
154153
:language: none

0 commit comments

Comments
 (0)