Fixes pickel issue of lazy object

This commit is contained in:
Johannes Hoppe 2016-01-27 09:59:49 +01:00
parent 7d8908daab
commit 0ee50d9866
3 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,9 @@
Changelog Summary
=================
### v5.7.1
* Fixes pickle bug of lazy object
### v5.7.0
* Security fix that allows a `field_id` to only be used for the intended JSON endpoint.

View file

@ -9,4 +9,4 @@ The app includes Select2 driven Django Widgets and Form Fields.
"""
__version__ = "5.7.0"
__version__ = "5.7.1"

View file

@ -53,7 +53,7 @@ from itertools import chain
from django import forms
from django.core import signing
from django.core.urlresolvers import reverse_lazy
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.forms.models import ModelChoiceIterator
from django.utils.encoding import force_text
@ -194,7 +194,7 @@ class HeavySelect2Mixin(Select2Mixin):
"""Return url from instance or by reversing :attr:`.data_view`."""
if self.data_url:
return self.data_url
return reverse_lazy(self.data_view)
return reverse(self.data_view)
def build_attrs(self, extra_attrs=None, **kwargs):
"""Set select2's ajax attributes."""