Django-crispy-forms

Latest version: v2.1

Safety actively analyzes 630169 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 9

1.1.4

* Multithread safety improvements for `BasicNode`.
* Security fix: Thread safety fixes to `CrispyFieldNode` thanks to Paul Oswald. This avoids leaking information between requests in multithreaded WSGI servers.
* Added css class `control-label` to `AppendedText` and `PrependedText` layout object's templates.
* `{% crispy field %}` tag can now pass attrs to `MultiWidget` subclasses by Michal Kuffa. `attrs` are set for sub-widgets. Also `attrs` can now be an iterable for passing different attributes to different sub-widgets. For example,this way MultiWidget's widgets get css classes set correctly.
* Turning underscores into hyphens for `Field` layout objects.
* Fix for `ChoiceFields` using non-string choices with radio buttons thanks to Rudy Mutter. See GH-46, GH-43 and GH-35.

1.1.3

Not secure
* `|crispy` and `|as_crispy_field` filters were not rendering errors. Thanks to ximi for reporting it and submitting a patch. See issue GH-28.
* Fixing a test that was breaking when language was not English. Thanks to gaftech, see GH-30.
* Fixing `radioselect.html` and `checkboxselectmultiple.html` templates. Thanks to Christopher Petrilli for submitting a patch for `radioselect`. See issue GH-35.
* HTML attributes can now be set in `BaseInput` subclasses like `Button` by jamesmfriedman. See GH-32.
* Fix for dynamic crispy-forms with Meta classes by Jeroen Vloothuis. See GH-37.
* Labels now use `id_for_label` instead of `auto_id` to avoid ids breaking on multiwidgets. by Daniel Izquierdo. See GH-38.
* Adding a flatatt custom function in `utils.py` for flatting extra HTML attributes.
* HTML attributes can now be set in `Div` layout object.
* Adding tests for new functionality and bugs.

1.1.2

Not secure
* input name attribute is no longer slugified if only one word is provided, respecting caps.
* Changes in bootstrap global error templates by David Bennett.
* Added class `control-label` to labels, for horizontal layout thanks to bitrut.
* Using `{{ field.html_name }}` instead of `{{ field.name }}` in field templates, so that they work with form prefixes (formwizard) by Patrick Toal.
* Fixing error rendering in bootstrap AppendedText and PrependedText.
* Applying `field.css_classes` in bootstrap `field.html` instead of widget classes.
* Fixes for bootstrap simple checkbox input to be wrapped correctly.

1.1.1

Not secure
* Fixing a critical bug in bootstrap templates, that was breaking `{% load crispy_forms_tags %}`

1.1.0

* Fixing produced html by a checkbox field, closing label the right way and rendering checkbox in the right place.
* Passing full context to field rendering, to be consistent and having access in `field.html` template to helper attributes.
* Custom helper attributes can now be set and will be part of templates context, this way you can define custom specific behavior.
* Adding kennethlove bootstrap template pack into django-crispy-forms core.
* Adding `CRISPY_TEMPLATE_PACK` setting variable to easily switch between different template packs. Default template pack is now bootstrap.
* Upgrading bootstrap templates, fixing some bugs and redoing the hierarchy.
* Upgrading tests for multiple template packs.
* Renaming `UNIFORM_FAIL_SILENTLY` setting variable to `CRISPY_FAIL_SILENTLY`, upgrading migration instructions.
* Redoing bootstrap `field.html` template to render `radioselect` and `checkboxselectmultiple` Django widgets a la bootstrap.
* Adding a `render_unmentioned_fields` helper attribute, that renders all fields in a form, no matter what the layout is. Default is `False`.
* Adding a `|css_class` filter that renders field classes in an elegant way.
* Turning `|with_class` filter into `{% crispy_field %}` tag, so that parameters for rendering the field can be passed.
* Adding a `help_text_inline` helper attribute, that controls whether to render help texts in bootstrap with "help-inline" or "help-block".
* Adding a `flat_attrs` variable to the context passed to `field.html` to be able to do all kind of html attributes when rendering a field, using `Field` layout object.
* Adding a `template` kwarg to `Field` layout object that allows to override template used for rendering a field.
* Adding a `bootstrap.py` module that holds bootstrap specific layout objects, for higher bootstrap integration.
* Adding a `AppendedText`, `PrependedText` and `FormActions` bootstrap layout objects. First two based in polyvalent `Field` layout object.

1.0.0

Not secure
* Using `baseinput.html` template within `whole_uni_form.html`, to be DRY and consistent.
* `BaseInput` subclasses like `Submit` can now have ids set, using `css_id`
* Adding a simplified alternative syntax for `{% uni_form %}` tag. We can now do `{% uni_form form %}` for rendering a form using a helper, instead of `{% uni_form form form.helper %}`, if the `FormHelper` attribute attached to the form is named `helper`.
* Improving `rendered_fields` checking performance.
* Layouts are now rendered strictly. We don't render fields missed in the layout. If the form has a Meta class with `fields` or `exclude`, then we follow Django standards.
* Added `Field` layout object. You can wrap name fields within and set all kind of attributes easily or override widget template.
* Fixed GH-111 we were not rendering all the classes in `|with_class` filter
* Moving django-uni-form to django-crispy-forms. Renaming tags, filters and modules. Updating tests and so on. Adding migration instructions.
* More work on simpler and easier docs.
* Adding `form_show_errors` helper attribute, that controls whether to render or not `form.errors`
* Improving template hierarchy for more template code reusability.

CHANGELOG for django-uni-form

Page 7 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.