mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed Sphinx error in tutorial 1.
This commit is contained in:
@@ -598,8 +598,7 @@ for your own sanity when dealing with the interactive prompt, but also because
|
||||
objects' representations are used throughout Django's automatically-generated
|
||||
admin.
|
||||
|
||||
.. admonition:: :meth:`~django.db.models.Model.__unicode__` or
|
||||
:meth:`~django.db.models.Model.__str__`?
|
||||
.. admonition:: `__unicode__` or `__str__`?
|
||||
|
||||
On Python 3, things are simpler, just use
|
||||
:meth:`~django.db.models.Model.__str__` and forget about
|
||||
|
||||
Reference in New Issue
Block a user