Skip to content

Nh3charfield and nh3textfield #52

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

blag
Copy link

@blag blag commented May 19, 2025

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.

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.

[FEATURE REQUESTS] Provide Nh3CharField and Nh3TextField
2 participants