-
Notifications
You must be signed in to change notification settings - Fork 183
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
[Resolves #468] Move clean_html import into clean methods #469
Conversation
This change allows the HTMLField to be used within a custom user model without causing a LookupError.
Hello @danielsamuels 👋 I've been bitten a few times by #468 and I've stumbled upon this PR of yours. I'd like to reopen that issue and get it fixed. May I ask why you closed this PR? Was the fix not effective? Thanks. |
Hi @mbi ! Since the htmllib's sanitizer has been deprecated it is time to move to bleach as a sanitizer for djangocms-text-ckeditor. I'd suggest to refactor the imports together with this change. What do you think? Would you be able to support such a PR? |
@fsbraun yes, I'll submit a PR as soon as I find a moment... |
Since the discussion in #632 might take some time to resolve, does it make sense for now, to move
from the top of the file into the djangocms-text-ckeditor/djangocms_text_ckeditor/utils.py Lines 147 to 153 in 9ac4c15
I'd assume this would solve the issue? Also, it would be great to have a test to check this... |
@fsbraun it absolutely solves the issue, I'm running a fork just to do that. I'll prepare a PR just for this issue, and I'll analyze how hard it'd be to actually test this. |
This change allows the HTMLField to be used within a custom user model without causing a LookupError.