mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
[1.8.x] Improved wording in tutorial 1.
Backport of dcdef1fe2e
from master
This commit is contained in:
parent
b825ec38c1
commit
5a3b59370c
@ -671,8 +671,8 @@ of this object. Let's fix that by editing the ``Question`` model (in the
|
|||||||
return self.choice_text
|
return self.choice_text
|
||||||
|
|
||||||
It's important to add :meth:`~django.db.models.Model.__str__` methods to your
|
It's important to add :meth:`~django.db.models.Model.__str__` methods to your
|
||||||
models, not only for your own sanity when dealing with the interactive prompt,
|
models, not only for your own convenience when dealing with the interactive
|
||||||
but also because objects' representations are used throughout Django's
|
prompt, but also because objects' representations are used throughout Django's
|
||||||
automatically-generated admin.
|
automatically-generated admin.
|
||||||
|
|
||||||
.. admonition:: ``__str__`` or ``__unicode__``?
|
.. admonition:: ``__str__`` or ``__unicode__``?
|
||||||
|
Loading…
Reference in New Issue
Block a user