mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Removed Python 2 notes in docs.
This commit is contained in:
@@ -87,7 +87,7 @@ We'll be using these models::
|
||||
class Meta:
|
||||
ordering = ["-name"]
|
||||
|
||||
def __str__(self): # __unicode__ on Python 2
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Author(models.Model):
|
||||
@@ -96,7 +96,7 @@ We'll be using these models::
|
||||
email = models.EmailField()
|
||||
headshot = models.ImageField(upload_to='author_headshots')
|
||||
|
||||
def __str__(self): # __unicode__ on Python 2
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Book(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user