Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b46f96bf01
Jeremy Epstein
21 lines (14 sloc) 0.614 kb
from django.contrib.admin.widgets import AdminTextInputWidget
from django.utils.translation import ugettext_lazy as _
from taggit.forms import TagField
from taggit.managers import TaggableManager as BaseTaggableManager
from widgets import TagAutocomplete
class TaggableManager(BaseTaggableManager):
def formfield(self, form_class=TagField, **kwargs):
defaults = {
"label": _("Tags"),
"help_text": _("A comma-separated list of tags."),
}
defaults.update(kwargs)
kwargs['widget'] = TagAutocomplete
return form_class(**kwargs)
Jump to Line
Something went wrong with that request. Please try again.