mirror of
https://github.com/django/django.git
synced 2025-07-19 03:05:32 +00:00
Renamed __unicode__() to __str__() in some test comments.
This commit is contained in:
parent
db8763fb23
commit
65764a9316
3 changed files with 13 additions and 15 deletions
|
@ -19,7 +19,7 @@ from .models import (
|
|||
class ModelInheritanceTests(TestCase):
|
||||
def test_abstract(self):
|
||||
# The Student and Worker models both have 'name' and 'age' fields on
|
||||
# them and inherit the __unicode__() method, just as with normal Python
|
||||
# them and inherit the __str__() method, just as with normal Python
|
||||
# subclassing. This is useful if you want to factor out common
|
||||
# information for programming purposes, but still completely
|
||||
# independent separate models at the database level.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue