Filter and action to work with tags in the django-admin-backend.
Project description
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
Add more_admin_filters to your installed apps:
INSTALLED_APPS = [ 'taggit_ui', ... ]
Add the TagFilter
and manage_tag
action to your ModelAdmin:
from taggit_ui.filters import TagFilter from taggit_ui.actions import manage_tags class MyModelAdmin(admin.ModelAdmin): ... list_filter = [ TagFilter, ... ] actions = [ manage_tags, ... ]
Extend your url_patterns in urls.py:
urlpatterns = [ ... url(r'^', include('taggit_ui.urls')), ]
Limitations
Currently this app only works with models that referencing their
TaggableManager
as an attribute named tags
:
class MyModel(models.Model): tags = TaggableManager(blank=True) ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-admin-taggit-ui-1.0.tar.gz
.
File metadata
- Download URL: django-admin-taggit-ui-1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c7cff2a70569ab5649214e00debe0514123f97a63899d048586b3fde79bbd2 |
|
MD5 | bbb4a3effc58ccb8c0925b7f27c8a34b |
|
BLAKE2b-256 | 1fb50b66b3b2fc423c6e0ca529dec71a8c7923533a345630a8bb6083eff8aa23 |
Provenance
File details
Details for the file django_admin_taggit_ui-1.0-py3-none-any.whl
.
File metadata
- Download URL: django_admin_taggit_ui-1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03135bc1a1aac5e4dd32faf843940d70d95fbcfa1071c869966acf3e50ed46e8 |
|
MD5 | 1975f7918422fd95bc98c422a536273c |
|
BLAKE2b-256 | 5a2f8df1fa84aa74151ca099cdbb7770d6560529660e8559c515a75690df9492 |