mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Add missing imports to the examples in the 'First Steps'
This commit is contained in:
parent
cd72c55d86
commit
ddd9ee16fa
5 changed files with 29 additions and 0 deletions
|
@ -582,6 +582,8 @@ of this object. Let's fix that by editing the polls model (in the
|
|||
``Choice``. On Python 3, simply replace ``__unicode__`` by ``__str__`` in the
|
||||
following example::
|
||||
|
||||
from django.db import models
|
||||
|
||||
class Poll(models.Model):
|
||||
# ...
|
||||
def __unicode__(self): # Python 3: def __str__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue