From e829422a3f6ad08ef6860da2c90f62a4e915489c Mon Sep 17 00:00:00 2001 From: Anatoly Bubenkov Date: Mon, 10 Aug 2015 14:19:46 +0200 Subject: [PATCH] avoid deprecated force_unicode --- django_select2/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_select2/widgets.py b/django_select2/widgets.py index 384e6dd..0f2bb5e 100644 --- a/django_select2/widgets.py +++ b/django_select2/widgets.py @@ -13,7 +13,7 @@ from django import forms from django.core.urlresolvers import reverse from django.core.validators import EMPTY_VALUES from django.utils.datastructures import MergeDict, MultiValueDict -from django.utils.encoding import force_text, force_unicode +from django.utils.encoding import force_text from django.utils.safestring import mark_safe from django.utils.six import text_type @@ -432,7 +432,7 @@ class HeavySelect2Mixin(Select2Mixin): for val, txt in chain(self_choices, all_choices): val = force_text(val) - choices_dict[val] = force_unicode(txt) + choices_dict[val] = force_text(txt) for val in selected_choices: try: