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 6 of 9

1.2.5

* Avoid raising Exceptions in `|as_crispy_field` filter when not in DEBUG mode.
* Popping `css_id` to avoid having a css-id attribute, see 167.
* Fixed a bug in dynamic layout API, when wrapping layout objects that had arguments passed after fields. Moving `LayoutSlice` to `layout_slice` module.
* Fixed test failing when tests runned from manage.py test.
* Fixed testing name conflict, see 130.

1.2.4

* Added `wrapper_class` kwarg to `Field` layout object, see 163.
* Added `Accordion` and `AccordionGroup` bootstrap layout objects, see 162.
* Bug fix in `render_crispy_form` to avoid override existing context, see 153.
* Use formset iterator instead of `forms` list attribute, see 152.
* Don't display fieldset legend if empty, see 147 and 155.
* Bug fix for pickling crispy forms by powderflask, see 107.
* Switched from `django.form.utils.flatatt` to internal `flatatt` utils implementation, this allows adding data-attrs to `FormActions` and `StrictButton`.
* `render_field` now uses a context manager to avoid side effects when layout objects update template context. This makes context mutability safe within layout objects.
* Added `greedy` kwarg to `filter` dynamic API.
* Fixing error logging on `|as_crispy_field` filter, see 135.
* Implemented `__delitem__`, `__len__` and `__setitem__` in `LayoutObject` and `DynamicLayoutHandler`, this avoids pylint warnings, see 114.
* Docs folder no longer included when installing crispy-forms, see 132.
* Added `wrap_once`, `update_attributes`, `map` and `pre_map` to LayoutSlice.

1.2.3

* Fixed imports to be relative to package, avoiding namespace collisions.
* Removed circular dependency between `layout` and `bootstrap`, see 129.
* Bug fix, adapted use of inspect module in `utils.py` to avoid breaking Python 2.5 compatibility.

1.2.2

* Bug fix, reduction of white space in crispy-forms output could mess within tags, see 127, reverting part of this reduction.
* Renamed `AppendedPrependedText` to `PrependedAppendedText`.
* Moved `Tab` and `TabHolder` to `bootstrap.py`.

1.2.1

* Bug fix `help_text_inline` set to True, see 117.
* New fix for the space between buttons problems, see 62.
* Reduced importantly whitespace in html generated by crispy-forms, forms are now more compact.
* Added support for specifying a template pack per form, see 66 and 109.
* Removed `clearfix` class from bootstrap templates, not necessary anymore, see 105.
* Space cleanup in bootstrap templates, thanks to Si Feng, see 122.
* Fixed `MultiField` to work with `form_show_errors` helper attribute.
* Fixed a bug in `MultiField` that set error class when there were form errors, no matter if the fields with errors were contained within, see 120.
* `FieldWithButtons` now supports `Field` layout object as its first parameter, for setting input attributes.
* Bug fixes for `FieldWithButtons`, field label, `help_text` or error messages were not being rendered, see 121.
* Fixed a bug that was making crispy-forms render extra fields with ModelForms that didn't have `Meta.fields` defined, thanks to Jean-Baptiste Juin for reporting it.
* Fixed a bug that was breaking Django 1.2 compatibility when copying context variables, thanks to Alex Yakovlev for submitting a patch, see 108.
* Fixed a bug for `AppendedText`, `PrependedText` and `AppendedPrependedText` layout objects, thanks to Bojan Mihelac, see 104.
* Fixed a bug in appended and prepended text layout objects for respecting hidden fields, thanks to Bojan Mihelac, see 103.
* Added two new bootstrap layout objects: `FieldWithButtons` and `StrictButton`.
* Added checks and better error messages for dynamic API.
* Fixed `get_layout_objects` recursive call for Python2.5 compatibility, thanks to Can Başçıl for reporting it.

1.2.0

* Update prepended and appended templates to respect hidden fields, thanks to Bojan Mihelac, see GH-103.
* Added `InlineCheckboxes` to bootstrap layout objects, for rendering checkboxes inline.
* `BaseInput` subclasses, like `Submit` can now have its value set to a context variable.
* Rendering inputs added with `add_input` in bootstrap using the right templates, see GH-95.
* Improved formsets rendering docs thanks to Samuel Goldszmidt, see GH-92.
* Added `Tab` and `TabHolder` layout objects thanks to david-e, see GH-91.
* Fixed default bootstrap button default classes thanks to david-e, see GH-90.
* Fixed some flaws in new testing structure by Markus Hametner.
* Added helper attribute `error_text_inline` thanks to Lee Semel for controlling how to render form errors, as a block or inline, see GH-87.
* Support `ModelMultipleChoiceField` on `checkboxselectmultiple`, see GH-86.
* Redoing testing structure a little bit, to run uni_form and bootstrap tests separately. They share most of the code base, but templates pack are separate and we need to care both have the same quality assurance.
* `AppendedText`, `PrependedText` and `AppendedPrependedText` were not respecting `form_show_errors` helper attribute, see GH-77.
* Added a version string to the app under root __init__, see GH-76.
* Added `html5_required` helper attribute for rendering required fields using HTML5 required attribute within the input, see GH-72. Thanks to Lloyd Philbrook.
* Some docs typos and errors fixed, also a major upgrade to docs covering the new functionality.
* Adding a `utils.render_crispy_form` function, that renders a form the crispy way in Python code. This might be useful with AJAX, testing or text generation/manipulation, see GH-64.
* Tiny cosmetic fix, that adds an space after a button, see GH-62.
* `MultiField` and `Fieldset` layout objects can now have any kind of attribute defined, thanks to Lloyd Philbrook, see GH-71.
* Making `Fieldset`, `MultiField` & `HTML` contents lazy translatable thanks to Rivo Laks, see GH-69.
* Fixing `radioselect` checked status when used for a FK in a ModelForm, see GH-68.
* Fixing `form.Meta` usage, using instance `fields` instead of static `Meta` definition, so that it works when updating forms on the go, see GH-59.
* Added a low level manipulation API for layout and layout objects. Added a `LayoutObject` base class that creates an interface. This allows to access nested fields easily and use list methods without know internals of the system.
* Added a `|classes` filter that returns field's classes.
* Now `FormHelper` can accept a form instance as an optional first argument, from which it can build a default layout.
* Added an API for manipulating dynamic layouts and programmatic layout building.
* Added `UneditableField` bootstrap layout object for uneditable fields.
* Support for hiding fields using `Field('field_name', type="hidden")`, see GH-55.
* Avoid template context pollution of variable `form` after using {% crispy %} tag, see GH-54.
* Added an `attrs` helper attribute, for more flexible form attributes, see GH-48.
* New `AppendedPrependedText` layout object thanks to Samuel Goldszmidt, see GH-45.
* Removal of some whitespace in crispy form's HTML generated, see GH-42.
* New `MultiWidgetField` layout object by Michal Kuffa, see GH-39.

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.