New Feature: django.contrib.markup.fields.MarkupField
|Reported by:||James Turk||Owned by:||James Turk|
|Cc:||Carl Meyer||Triage Stage:||Accepted|
|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 8 years ago by
|Patch needs improvement:||unset|
comment:14 Changed 5 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Design decision needed → Accepted|