kelvinwong-ca / django-select-multiple-field

Select multiple choices in a single Django model field
Other
34 stars 25 forks source link

RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead. #12

Open yohanboniface opened 8 years ago

yohanboniface commented 8 years ago

See https://docs.djangoproject.com/en/1.9/releases/1.8/#subfieldbase

That's just a warning in 1.9, but will become an error in 1.10.

1.10 will be released in August 2016 so we are not in a hurry ;)

vipul-voonik commented 8 years ago

Cool

matiasherranz commented 8 years ago

Fix for this issue (and updated unittests): https://github.com/kelvinwong-ca/django-select-multiple-field/pull/16

bochecha commented 8 years ago

18 seems a better fix, more complete, and with the addition of running the tests on Django 1.10. (but thanks @matiasherranz for having provided an early fix!)

@kelvinwong-ca any chance you could review it? We'll probably go with that branch for Ideascube, at least temporarily, since this is the last thing preventing us from moving to Django 1.10.

acidjunk commented 7 years ago

After Upgrading to Django 1.10 the stack fails with:

from select_multiple_field.models import SelectMultipleField

File "/Users/acidjunk/.virtualenvs/dcim/lib/python2.7/site-packages/select_multiple_field/models.py", line 20, in class SelectMultipleField(six.with_metaclass(models.SubfieldBase, AttributeError: 'module' object has no attribute 'SubfieldBase'

Django 1.10 support would be nice.