Skip to content

Commit 80ddf07

Browse files
committed
fix str
1 parent 10f2637 commit 80ddf07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/includes/interact-data/raw-queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Meta:
2727
managed = False
2828

2929
def __str__(self):
30-
return self.title
30+
return self.theaterId
3131
# end-models
3232

3333
# start-filter-project

source/includes/use-sample-data.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The |model-classes| an inner ``Meta`` class, which specifies
2-
model metadata, and a ``__str__()`` method, which sets the
3-
model's string representation to its ``title`` field. To learn about
4-
these model features, see :ref:`django-models-define` in the
2+
model metadata, and a ``__str__()`` method, which defines the
3+
model's string representation. To learn about these
4+
model features, see :ref:`django-models-define` in the
55
Create Models guide.
66

77
Run Code Examples

0 commit comments

Comments
 (0)