Add missing imports to the examples in the 'First Steps'

This commit is contained in:
leandrafinger 2013-05-18 13:34:29 +02:00 committed by Marc Egli
parent cd72c55d86
commit ddd9ee16fa
5 changed files with 29 additions and 0 deletions

View file

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