Skip to content
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

Fixes (Python 3.6, tox, StringField default, latest versions...) #49

Merged
merged 3 commits into from Mar 5, 2017
Merged

Fixes (Python 3.6, tox, StringField default, latest versions...) #49

merged 3 commits into from Mar 5, 2017

Conversation

noirbizarre
Copy link
Contributor

The latest version which makes use of StringField instead of TextField introduce some cahnges for those using StringField and child because StringField wasn't inheriting from TextField.
Most of changes are simply handled by inheriting of Field instead of StringField to avoid the brutal self.data = '' but for those which are really StringField (ie. expected type is a string), the default value was ignored.

So this PR properly handle default value for StringField.

While testing, I noticed some minor glitches I fixed:

  • Python 3.6 was not supported
  • it was tested against WTForms 2.0, latest is 2.1
  • tox.ini wasn't up to date (still testing against Python 2.6)
  • there was a naming conflict between some test classes

@noirbizarre noirbizarre changed the title String inheritance fixes Fixes (Python 3.6, tox, StringField default, latest versions...) Mar 2, 2017
@kvesteri
Copy link
Owner

kvesteri commented Mar 5, 2017

Thanks for the PR! 🚋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants