New Feature: django.contrib.markup.fields.MarkupField
|Reported by:||jamesturk||Owned by:||jamesturk|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||yes|
I recently published a snippet of something I've wanted in Django for a long time, a MarkupField that handles conversion to HTML on save and an accessor that calls mark_safe.
My implementation is at http://www.djangosnippets.org/snippets/1332/ (Credit where credit is due, I also borrowed the method of detecting which markup libraries are installed from a slightly less featured version http://www.djangosnippets.org/snippets/1169/)
Jacob commented on Twitter that he'd like to see this as well and to submit a ticket.
I'll put together the appropriate fields.py / documentation / tests and should have a candidate patch up soon.
Change History (16)
comment:1 Changed 7 years ago by jamesturk
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 7 years ago by jamesturk
comment:7 Changed 7 years ago by jacob
- Triage Stage changed from Unreviewed to Design decision needed
comment:12 Changed 4 years ago by gabrielhurley
- Component changed from Contrib apps to contrib.markup
comment:14 Changed 4 years ago by aaugustin
- Easy pickings unset
- Needs documentation set
- Patch needs improvement set
- Triage Stage changed from Design decision needed to Accepted
- UI/UX unset