Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
My fork of django-taggit-autosuggest that uses Select2 instead of jQuery auto-suggest
JavaScript CSS Python
branch: master

This branch is 28 commits ahead of lsemel:master

Merge pull request #2 from robnewman/master

Update select2 to 3.4.5
latest commit d9e2fa1c49
@jjmalina authored
Failed to load latest commit information.
taggit_autosuggest_select2 Remember to add the files
.gitignore Select 2 kind of works now.
LICENCE Initial commit
README.md
README.txt Update select2 to 3.4.5
setup.py

README.md

This is my fork of https://bitbucket.org/fabian/django-taggit-autosuggest

Instead of using jQuery autosuggest, this widget uses Select2.

Credits

This project is directly based on those projects:

Installation

  • Add "taggit_autosuggest_select2" to your INSTALLED_APPS in your project settings
  • Run "python manage.py collectstatic" in your django site dir.
  • Add the following line to your project's urls.py file: (r'^taggit_autosuggest_select2/', include('taggit_autosuggest_select2.urls')),

Settings

  • TAGGIT_AUTOSUGGEST_SELECT2_STATIC_BASE_URL Instead of collecting and serving the static files directly, you can also set this variable to your static base URL somewhere else.
  • TAGGIT_AUTOSUGGEST_SELECT2_MAX_SUGGESTIONS (Defaults to 20): The amount of suggestions is limited, you can raise or lower the limit of default 20 using this setting.

Usage

  • To enable autosuggesting Tags, just let the tagged model use TaggableManager:

    from django.db import models
    from taggit_autosuggest_select2.managers import TaggableManager
    
    class SomeModel(models.Model):
    
        tags = TaggableManager()
    
Something went wrong with that request. Please try again.