Skip to content

Commit

Permalink
Merge pull request #14 from vdboor/fix-django2-imports
Browse files Browse the repository at this point in the history
Fix the reverse() import for Django 2.0
  • Loading branch information
chhantyal authored Feb 13, 2018
2 parents ef39129 + fbd20f9 commit e941c39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion taggit_selectize/widgets.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
from django import forms
from django.core.urlresolvers import reverse
from django.utils import six
from django.utils.safestring import mark_safe
from taggit.utils import edit_string_for_tags

from .conf import settings

try:
from django.urls import reverse # Django 1.10+
except ImportError:
from django.core.urlresolvers import reverse


class TagSelectize(forms.TextInput):
def render(self, name, value, attrs=None):
Expand Down

0 comments on commit e941c39

Please sign in to comment.