Description
This app is build in top of django-taggit and provides a tag-filter and an admin-action to handle tags with ease within django’s admin backend.
Tag-Filter
The tag filter allows you to include and exclude mutliple tags as well as easily deleting tags.
Admin-Action
The admin action allows you to easily add and remove tags from objects.
Installation
Install from pypi.org:
pip install django-admin-taggit-ui
Setup
Add more_admin_filters to your installed apps:
INSTALLED_APPS = [
'taggit_ui',
...
]
Extend your url_patterns in urls.py:
urlpatterns = [
...
url(r'^', include('taggit_ui.urls')),
]
Add the TagFilter and manage_tag action to your ModelAdmin:
from taggit_ui.filters import TagFilter
from taggit_ui.actions import tag_manager
class MyModelAdmin(admin.ModelAdmin):
...
list_filter = [
TagFilter,
...
]
actions = [
tag_manager,
...
]
It is possible to optionally tag related items of other models using the admin
action. Therefore initialize the TagManager` class with a
ModelTree:
from taggit_ui.actions import TagManager
from modeltree import ModelTree
class MyModelAdmin(admin.ModelAdmin):
...
actions = [
TagManager(ModelTree),
...
]
The admin action will then render its form with all taggible related Models as checkbox fields and the count of related items belonging to these models.
Metadata
Release files for django-admin-taggit-ui 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_admin_taggit_ui-1.3.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_taggit_ui-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / django_admin_taggit_ui-1.3.tar.gz
| Download URL | django_admin_taggit_ui-1.3.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4211517d30460cabe550b61353287ef9605ba9d0f4c00d6441ff3b9dcbf63f0
|
|
BLAKE2b-256 checksum How to use checksums |
ea9989ff82ea3bcfadad901ca8bc66d7404b29cd56239e4957f3f86790642f19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / django_admin_taggit_ui-1.3-py3-none-any.whl
| Download URL | django_admin_taggit_ui-1.3-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70c95351f1f43ca75709c274a9a3db756d5ed042351ca11ebd5d23979f9c5f87
|
|
BLAKE2b-256 checksum How to use checksums |
3b2748bffc4321a04937ab8fbc106d4fca58aaa6764f283572aec9d8d4431620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|