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
Fix settings with Django 1.11 #682
Conversation
A ModelChoiceField needs as first argument a QuerySet or initially None, not a Model. Since Django 1.11 the queryset is already used in the __init__() function, resulting in an AttributeError when the wrong type is used here.
Thanks for fixing this, will get a patch release out ASAP and report back.... |
Also wondering: Why didn't this show up in tests.... |
Hey, guys, thanks for a quick patch! Unfortunately, now when clicking on TypeError at /wiki/_settings/
build_attrs() got an unexpected keyword argument 'name' It seems like it's due to a change in No |
True that... and I think we've fixed this before... and once again, I wonder why tests aren't catching this, they should, let's figure it out... |
Could you post a complete trace? For me opening the settings works |
@floemker - it could be related to enabled plugins? Do you have |
Yes, notifications are enabled. It's with the nearly default test project. |
@benjaoming, just realized that error occured with wiki 0.2.4 and Django 1.11.3 which is not a supported combination. Very sorry for the confusion! |
Alright cool, thanks for letting us know! |
The notifications plugin uses a ModelChoiceField in it's settings. A
ModelChoiceField needs as first argument a QuerySet or initially None,
not a Model. Since Django 1.11 the provided queryset is already used in
the __init__() function, resulting in an AttributeError when the wrong
type is used here.
This fixed issue #676.