-
Notifications
You must be signed in to change notification settings - Fork 257
Allow RadioField #154
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
Comments
Hello? |
Sounds fine to me @itsnauman @noirbizarre any thoughts? |
Well, to be honest I don't since it breaks the converter's pattern because I would prefer to treat choices in the converter not in the preconverter like now But this solve my specifc problem right now |
Concept seems fine to me but without a pull-request wa can't see the whole picture. To run the tests: To run the tests on all Python versions and with different MongoEngine versions: I will submit a PR with the testing documention and an updated |
@noirbizarre sorry but your library is a mess right now because of the lack of update |
@Garito It's not my library, I'm a contributor trying to improve it. :) The problem with PyMongo 3.0+ is a known upstream MongoEngine problem, already fixed and soon to be released: MongoEngine/mongoengine#946 With the PyMongo 2.8 workaround, is it working (and sufficient for you to perform your tests) ? |
Yes, yes... thank you so much |
I think I mix another change here: master...Garito:master |
@Garito do you need this opened? |
Everything seems to work as expected since 0.7.5 |
Hi!
I would like to use a StringField with choices as, instead of a SelectField or MultiSelectField, RadioField
For that I modify the orm.py adding 2 lines of code
Instead of:
I have
Notice this 2 new lines:
I would prefer to make a pull request but I wasn't able to run the test (if you could point me to the test help I would apreciate it)
In the other hand, I would prefer that choices will be treated in the converter to allow subclassing better but this change will be ok for me
What do you think?
Thanks!
The text was updated successfully, but these errors were encountered: