Refs #23919 -- Removed Python 2 notes in docs.

This commit is contained in:
Tim Graham 2017-01-18 11:51:29 -05:00 committed by GitHub
parent c716fe8782
commit f6acd1d271
61 changed files with 139 additions and 731 deletions

View file

@ -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):