django-nh3
django-nh3 copied to clipboard
Nh3charfield and nh3textfield
I added on to #44, incorporating the feedback from that PR.
Additionally, since Nh3CharField and Nh3TextField ended up looking so similar, I just moved their logic into a mixin and tweaked their inheritance. This should also help anybody who is trying to write a custom field with Nh3, since they can now base theirs on Nh3FieldMixin.
Tests got a lot more complicated, and they would not allow two different models in different test modules (test_models_charfield.py and test_models_textfield.py) to be called the same thing. To ensure this wouldn't happen again I moved the test models and forms into their own respective modules.
Closes #44. Resolves #45.