django-crispy-forms v0.9.0 Release Notes
-
You can read on how to use new features included in this version at: 🔒 http://tothinkornottothink.com/post/10398684502/django-uni-form-0-9-0-is-out-security-fix
- Fixed a bug in
|with_class
filter so that it supportsshow_hidden_initial
, see #GH-95 to not break. - Fixed a problem on Fieldset's legends internationalization. Thanks to Bojan Mihelac, see #GH-90.
- Fixed XSS bug thanks to Charlie Denton, see #GH-98. Errors cannot be rendered safe, because field's input can be part of the error message, that would mean XSS.
- Updating and improving docs, adding more use case examples.
- Split
helpers.py
file intohelper.py
,layout.py
andutils.py
. Added a deprecation warning. - Improved testing coverage, specially for formsets and i18n.
- Improved rendering performance of
{% uni_form %}
tag and|as_uni_form
filter avoiding reloading templates every time, see #GH-81. - Added support for Django
Form.error_css_class
andForm.required_css_class
custom CSS classes, see #GH-87. - Moved template code in Layout objects into separate files in
uni_form/layout
directory. Layout objects templates can now be easily overridden, see #GH-37. form_style
can now be used without having to set a helper Layout, see #GH-85.form_action
is not lowered anymore andform_action
is set to "" by default instead of "." thanks to Jianbo Guo, see #GH-84.Multifield
field templatemultifield.html
markup fixed, addinghelp_text
support and removinglabelclass
from labels.- Fixed testing suite, when run not using
DjangoTestSuiteRunner
provided, thanks to Narsil #GH-82. - Removed test_project from the project.
- Improved
MultiField
performance avoiding instantiating BoundFields twice. - Fixed a bug in
MultiField
that raised an exception when internal fields had errors, because ofself.css
not existing. - Added an extra optional parameter to
render_field
calledlayout_object
, used for storing in it a list of bound fields. - Refactor all Layout objects to use templates and not having hardcoded HTML in the code, based on Jonas Obrist work. Resolves Issue #GH-37
- Added a Layout object called
Div
.Row
andColumn
both inherit fromDiv
Layout
can now be a child ofLayout
, see issue #GH-76.
- Fixed a bug in