Skip to content

Commit 4eedc94

Browse files
committed
fix include
1 parent ed1799f commit 4eedc94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/includes/use-sample-data.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ root directory:
1616
After entering the Python shell, ensure that you import the following models and
1717
modules:
1818

19-
.. code-block:: python
20-
21-
|model-imports|
22-
from {+framework+}.utils import timezone
23-
from datetime import datetime
19+
|model-imports|
2420

2521
To learn how to create a {+framework+} application that uses the ``Movie``
2622
model and the Python interactive shell to interact with MongoDB documents,

source/interact-data/crud.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ The ``Movie`` model class has the following definition:
7070

7171
.. replacement:: model-imports
7272

73-
from <your application name>.models import Movie
73+
.. code-block:: python
74+
75+
from <your application name>.models import Movie
76+
from {+framework+}.utils import timezone
77+
from datetime import datetime
7478

7579
.. _django-crud-insert:
7680

0 commit comments

Comments
 (0)