mirror of
https://github.com/django/django.git
synced 2025-08-08 04:48:27 +00:00
Fixed #20858 -- Removed erroneous import in tutorial 2.
Thanks AtomicSpark.
This commit is contained in:
parent
784377544e
commit
b278f7478d
1 changed files with 0 additions and 6 deletions
|
@ -352,12 +352,6 @@ representation of the output.
|
||||||
You can improve that by giving that method (in :file:`polls/models.py`) a few
|
You can improve that by giving that method (in :file:`polls/models.py`) a few
|
||||||
attributes, as follows::
|
attributes, as follows::
|
||||||
|
|
||||||
import datetime
|
|
||||||
from django.utils import timezone
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
from polls.models import Poll
|
|
||||||
|
|
||||||
class Poll(models.Model):
|
class Poll(models.Model):
|
||||||
# ...
|
# ...
|
||||||
def was_published_recently(self):
|
def was_published_recently(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue