Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-taggit
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dccc744b
authored
Oct 05, 2010
by
Alex Gaynor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #46. Document that you can't place a TaggableManager in ModelAdmin.list_display.
parent
d64a32bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
docs/admin.txt
+14
-0
docs/index.txt
+1
-0
No files found.
docs/admin.txt
0 → 100644
View file @
dccc744b
Using tags in the admin
=======================
By default if you have a :class:`TaggableManager` on your model it will show up
in the admin, just as it will in any other form. One important thing to note
is that you *cannot* include a :class:`TaggableManager` in
:attr:`ModelAdmin.list_display`, if you do you'll see an exception that looks
like::
AttributeError: 'TaggableManager' object has no attribute 'flatchoices'
This is for the same reason that you cannot include a :class:`ManyToManyField`,
it would result in an unreasonable number of queries being executed. If you really would like to add it, you can read the
`Django documentation <http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display>`_.
docs/index.txt
View file @
dccc744b
...
@@ -12,6 +12,7 @@ issues with older versions of Django), and Python 2.4-2.X.
...
@@ -12,6 +12,7 @@ issues with older versions of Django), and Python 2.4-2.X.
getting_started
getting_started
forms
forms
admin
api
api
custom_tagging
custom_tagging
issues
issues
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment