chhantyal / taggit-selectize

Auto-complete/auto-suggestion for django-taggit (django-taggit + selectize.js)
BSD 3-Clause "New" or "Revised" License
68 stars 23 forks source link

allow ajax suggestions when we have a custom model #18

Closed andytwoods closed 6 years ago

andytwoods commented 6 years ago

if we have a custom model (https://django-taggit.readthedocs.io/en/latest/custom_tagging.html#using-a-custom-tag-or-through-model), we don't get the lovely ajax suggestions. I suggest this modification to view.py and the below new settings parameter. TAGGIT_SELECTIZE_THROUGH = 'jobsboard.models.SkillTags'

chhantyal commented 6 years ago

Looks good to me, thank you for your contribution.

chhantyal commented 6 years ago

I made a new PyPI release with your commit https://pypi.org/project/taggit-selectize/2.5.0/