Tri.form

Latest version: v7.5.0

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

Scan your dependencies

Page 2 of 13

7.2.2

~~~~~~~~~~~~~~~~~~

* Fixed a bug where `Action` was functionally bound to `Form`, but it should be generally useful (e.g. for tri.table).

* Fixed a bug with `Field.icon` where there was a missing space when using the `icon_classes` argument, causing garbled css classes.

7.2.1

~~~~~~~~~~~~~~~~~~

* Fixed a bug where non-named forms did not perform validation because they didn't find the `/` POST key. They shouldn't need that!

7.2.0

~~~~~~~~~~~~~~~~~~

* Add support for setting name on forms to be able to reuse field names between two forms in the same view

* Removed deprecated `render_css_classes`, `render_container_css_classes`, `render_label_container_css_classes` and `render_input_container_css_classes`

* Fixed various issues with the namespacing necessary to have multiple forms on one page.

* Introduced `actions`/`Action` that will replace `links`/`Link`.

* Deprecated `links`/`Link`.

* `create_or_edit_object` now has an overridable parameter `on_valid_post`.

7.1.0

~~~~~~~~~~~~~~~~~~

* Added declared_fields to `Form`.

7.0.0

~~~~~~~~~~~~~~~~~~

* Renamed package from `tri.form` to `tri_form`. This is a breaking change

* Dropped python2 support

* Dropped Django < 2.0 support

6.0.2

~~~~~~~~~~~~~~~~~~

* Changed the default value for `parse_emtpy_string_as_none` to be based on the model fields `null` property.

* `from_model` should not overwrite defaults too early

* `Field.choice` now has a sane default parser using `choice_to_option`

* Changed render_attrs to stop you from making some common mistakes

* Fixed `time_render_value()`

* Fixes and improved tests for from_model_expand

* Fixed `from_model` for Django `TextField`. Should be `Field.textarea`, not `Field.text`

Page 2 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.