-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RemovedInDjango110Warning: SubfieldBase has been deprecated #39
Comments
anyone know who to fix it? |
+1 |
1 similar comment
+1 |
Hi, here is an attempt at a fix that in some ways reverts to using strings that perhaps can inspire someone to add this to the code. Seems like just keeping the to_python and from_db_value to return lists will mess up how values() and values_lists() works on query sets: (1) delete the subfieldbase referens, as not needed anymore
(5) in MultiSelectFormField add/override prepare_value() so it returns a list
|
+1 |
Appears to be blocked by #40 |
Looks like adding
and removing
fix the problem #40 .values_list() works fine Django==1.9.5 |
Great work there! Can someone please update the repo and release new version? Thank in advance. |
what's the status here? Would offer help to close this matter |
I guess the only solution is fork the project, name it "django-multiselectfield-updated" and release it on PyPy. |
Did what autogestion commented, and look like its work good... I am sure will be grate if somebody can update the project, thanks.. |
@autogestion, I would recommend a couple of changes in your code:
and instead of removing the metaclass, add a Django version check for backwards compatibility (the deprecation was introduced in Django 1.8):
|
I'm the new maintainer. I'll try to get to this soon, right now I'm expanding the tests to tests with Django 1.8+. If I forget to fix this, feel free to ping me. |
@platzhersh: If you have the time and inclination to help, get this into a mergeable and test-passable PR for me and I'll merge it in. |
Version 0.1.4 has just been pushed to PyPI, and includes this fix. |
Django 1.9 throws such warning:
SubfieldBase is used here
django-multiselectfield/multiselectfield/db/fields.py
Line 135 in c232d17
The text was updated successfully, but these errors were encountered: