summaryrefslogtreecommitdiff
path: root/docs/tutorial02.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-12-21 02:42:27 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-12-21 02:42:27 +0000
commit29fe9598e032452a09ace9fa1e6aeb8fb8886321 (patch)
tree156a798f9d6b9ac424d5d6b98a336414b6c4d3d3 /docs/tutorial02.txt
parentfe524625edcd585c7ac7f93838cc2025e21c0e8b (diff)
magic-removal: Renamed 'class META' to 'class Meta' in models
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial02.txt')
-rw-r--r--docs/tutorial02.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt
index 0f1792bc62..21454523d0 100644
--- a/docs/tutorial02.txt
+++ b/docs/tutorial02.txt
@@ -93,15 +93,15 @@ But where's our poll app? It's not displayed on the admin index page.
Just one thing to do: We need to specify in the ``polls.Poll`` model that Poll
objects have an admin interface. Edit the ``myproject/apps/polls/models/polls.py``
-file and make the following change to add an inner ``META`` class with an
+file and make the following change to add an inner ``Meta`` class with an
``admin`` attribute::
class Poll(meta.Model):
# ...
- class META:
+ class Meta:
admin = meta.Admin()
-The ``class META`` contains all non-field metadata about this model.
+The ``class Meta`` contains all non-field metadata about this model.
Now reload the Django admin page to see your changes. Note that you don't have
to restart the development server -- it auto-reloads code.
@@ -227,7 +227,7 @@ Here's what that would look like::
class Choice(meta.Model):
# ...
- class META:
+ class Meta:
admin = meta.Admin()
Now "Choices" is an available option in the Django admin. The "Add choice" form
@@ -311,7 +311,7 @@ on the change list page for the object::
class Poll(meta.Model):
# ...
- class META:
+ class Meta:
admin = meta.Admin(
# ...
list_display = ('question', 'pub_date'),