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

Remove help text from form field #247

Merged
merged 1 commit into from
Feb 22, 2020
Merged

Remove help text from form field #247

merged 1 commit into from
Feb 22, 2020

Conversation

rpkilby
Copy link
Owner

@rpkilby rpkilby commented Feb 22, 2020

The current implementation where the form field sets the default help text does not work, as the model field's formfield() will always provide its own default value, even if an empty string.

There isn't really a good solution here, so I think the best option is to just remove the help_text, as no builtin Django fields provide their own help_text (i.e., help_text should always be supplied by the user, not the field).

Fixes #95.

Note that the current implementation where the form field sets the
default help text does not work, as the model field's `formfield()`
will always provide its own default value, even if an empty string.
@rpkilby rpkilby added this to the 3.0.1 milestone Feb 22, 2020
@rpkilby rpkilby merged commit 5e0de07 into master Feb 22, 2020
@rpkilby rpkilby deleted the remove-help-text branch February 22, 2020 06:36
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.

Suppressing the form field help_text
1 participant