Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrislapiroff/django-taggit-tokenfield
Provides an autocompleting token widget for use with django-taggit.
https://github.com/harrislapiroff/django-taggit-tokenfield
Last synced: 2 months ago
JSON representation
Provides an autocompleting token widget for use with django-taggit.
- Host: GitHub
- URL: https://github.com/harrislapiroff/django-taggit-tokenfield
- Owner: harrislapiroff
- License: other
- Created: 2012-02-15T22:51:39.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-29T21:40:38.000Z (about 12 years ago)
- Last Synced: 2024-06-14T01:28:02.212Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 136 KB
- Stars: 4
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Django Taggit Token Field
=========================**Django Taggit Token Field** provides a simple to use `TagTokenWidget`, which autocompletes and tokenizes tag entry.
Installation
------------1. Install `taggittokenfield` somewhere on your Python Path. The easiest way to do this may be `pip install git+https://github.com/oberlin/django-taggit-tokenfield#egg=taggittokenfield`.
2. Add `'taggittokenfield'` to `INSTALLED_APPS` in `settings.py`.
3. Add `url(r'^tags/', include('taggittokenfield.urls'))` or similar to your `urlpatterns` in `urls.py`.Usage
-----The easiest way to use the token field in the Django admin is to override the form widget for `TaggableManagers` on your `ModelAdmin`s using the `formfield_overrides` attribute. E.g.,
from django.contrib import admin
from taggit.managers import TaggableManager
from taggittokenfield.forms import TagTokenWidget
class BlogAdmin(admin.ModelAdmin):
formfield_overrides = {
TaggableManager: {'widget': TagTokenWidget}
}