Django slugify text input
How do I take the value entered in a textbox and slugify it before sending it though the form? This doesn't work:
<input type="text" value="{{something|slugify}}开发者_如何学C" />
Use JavaScript, or add a clean_FOO
method to your form to sanitise (slugify in your case) your input data.
精彩评论