Skip to content

Commit ce6bcc4

Browse files
committed
fix
1 parent 15fee18 commit ce6bcc4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

source/interact-data/crud.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ of ``141``:
116116

117117
.. code-block:: python
118118

119-
from sample_mflix.models import Movie
120-
121119
movie = Movie.objects.create(title="Poor Things", runtime=141)
122120

123121
.. note::
@@ -153,10 +151,6 @@ returns ``Movie`` objects that represent movies released on January 1, 2000:
153151
.. input::
154152
:language: python
155153

156-
from sample_mflix.models import Movie
157-
from django.utils import timezone
158-
from datetime import datetime
159-
160154
Movie.objects.filter(released=timezone.make_aware(datetime(2000, 1, 1)))
161155

162156
.. output::
@@ -180,8 +174,6 @@ retrieves a document in which the ``title`` value is ``"Boyhood"``:
180174
.. input::
181175
:language: python
182176

183-
from sample_mflix.models import Movie
184-
185177
Movie.objects.get(title="Boyhood")
186178

187179
.. output::
@@ -221,8 +213,6 @@ a document that has a ``title`` value of ``"High Fidelity"`` and adds a
221213
.. input::
222214
:language: python
223215

224-
from sample_mflix.models import Movie
225-
226216
Movie.objects.filter(title="High Fidelity").update(plot=
227217
"Rob, a record store owner and compulsive list maker, recounts his top five breakups, including the one in progress.")
228218

@@ -256,8 +246,6 @@ and deletes documents that have a ``runtime`` value of ``5``:
256246
.. input::
257247
:language: python
258248

259-
from sample_mflix.models import Movie
260-
261249
Movie.objects.filter(runtime=5).delete()
262250

263251
.. output::

0 commit comments

Comments
 (0)