diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-07-19 15:37:28 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-07-19 15:37:28 +0000 |
| commit | 4729e3836eb48a39bc58b0daeaa71d6d9ea1349d (patch) | |
| tree | ee6d99de6a144439164e24ae11f24972786f8d01 /docs/tutorial02.txt | |
| parent | dce4db49a750cdde81d406d8e005df08dc7ecd6e (diff) | |
Fixed #7839 -- Corrected admin documentation and tutorial to reflect that 'classes' should be a list and not a string. Thanks Jan Rademaker for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial02.txt')
| -rw-r--r-- | docs/tutorial02.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt index c69fd1459f..5f06dde962 100644 --- a/docs/tutorial02.txt +++ b/docs/tutorial02.txt @@ -192,7 +192,7 @@ aren't commonly used:: class PollAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question']}), - ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}), + ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}), ] .. image:: http://media.djangoproject.com/img/doc/tutorial-trunk/admin09.png @@ -242,7 +242,7 @@ registration code to read:: class PollAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question']}), - ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}), + ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}), ] inlines = [ChoiceInline] |
