mirror of
https://github.com/django/django.git
synced 2025-03-09 08:52:32 +00:00
Fixed mistake in tutorial01 -- it mentioned expiration date by mistake. Thanks for the pointer, Barryp!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c9cc6f87f9
commit
a1ef6aa10b
@ -116,8 +116,8 @@ The first step in writing a database Web app in Django is to define your models
|
|||||||
data model in one place and automatically derive things from it.
|
data model in one place and automatically derive things from it.
|
||||||
|
|
||||||
In our simple poll app, we'll create two models: polls and choices. A poll has
|
In our simple poll app, we'll create two models: polls and choices. A poll has
|
||||||
a question, a publication date and an expiration date. A choice has two fields:
|
a question and a publication date. A choice has two fields: the text of the
|
||||||
the text of the choice and a vote tally. Each choice is associated with a poll.
|
choice and a vote tally. Each choice is associated with a poll.
|
||||||
|
|
||||||
Edit the ``polls/models/polls.py`` file so that it looks like this::
|
Edit the ``polls/models/polls.py`` file so that it looks like this::
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user