An amazing form solution
Project description
===============================
Solution
===============================
.. image:: https://badge.fury.io/py/Solution.png
:target: http://badge.fury.io/py/Solution
.. image:: https://travis-ci.org/jpscaletti/solution.png?branch=master
:target: https://travis-ci.org/jpscaletti/solution
.. image:: https://pypip.in/d/Solution/badge.png
:target: https://crate.io/packages/Solution?version=latest
An amazing form solution
Features
====================================
* Return validated data as dictionaries or create/update a linked model and child models.
* Sub-forms and form sets
* Extremely flexible in the field representation (defaulting to an HTML representation that might be good enough).
* Easy individual field or form-wide validators.
* Customizable cleanup functions.
______
:copyright: `Juan-Pablo Scaletti <http://jpscaletti.com>`_.
:license: MIT, see LICENSE for more details.
.. :changelog:
=============
History
=============
2.x
+++++++++++++++++++++++++++++++++++++
* Selects (and MultiSelects) can take groups of items and render them as ``<optgroup>`` or ``<fieldset>``.
* The ``clean`` and `vprepare`` methods of a field can now be defined as a form method with the signature ``clean_fieldname(py_value, **kwargs)`` and ``prepare_fieldname(obj_value, **kwargs)``.
* Added ``prepare`` and ``clean`` methods to the form so a user can overwrite them to store there the logic of pre and post-processing the data, keeping that logic in the form itself instead of in a view.
* Several bugfixes
Solution
===============================
.. image:: https://badge.fury.io/py/Solution.png
:target: http://badge.fury.io/py/Solution
.. image:: https://travis-ci.org/jpscaletti/solution.png?branch=master
:target: https://travis-ci.org/jpscaletti/solution
.. image:: https://pypip.in/d/Solution/badge.png
:target: https://crate.io/packages/Solution?version=latest
An amazing form solution
Features
====================================
* Return validated data as dictionaries or create/update a linked model and child models.
* Sub-forms and form sets
* Extremely flexible in the field representation (defaulting to an HTML representation that might be good enough).
* Easy individual field or form-wide validators.
* Customizable cleanup functions.
______
:copyright: `Juan-Pablo Scaletti <http://jpscaletti.com>`_.
:license: MIT, see LICENSE for more details.
.. :changelog:
=============
History
=============
2.x
+++++++++++++++++++++++++++++++++++++
* Selects (and MultiSelects) can take groups of items and render them as ``<optgroup>`` or ``<fieldset>``.
* The ``clean`` and `vprepare`` methods of a field can now be defined as a form method with the signature ``clean_fieldname(py_value, **kwargs)`` and ``prepare_fieldname(obj_value, **kwargs)``.
* Added ``prepare`` and ``clean`` methods to the form so a user can overwrite them to store there the logic of pre and post-processing the data, keeping that logic in the form itself instead of in a view.
* Several bugfixes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Solution-5.2.4.tar.gz
(35.8 kB
view details)
File details
Details for the file Solution-5.2.4.tar.gz
.
File metadata
- Download URL: Solution-5.2.4.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeb2d4f0c1787fffb7e53513a6a20d8250e5f2a89093aa3fb04e734c6db70185 |
|
MD5 | 27ccbf17abcc9f4f6c616bb5b9833b23 |
|
BLAKE2b-256 | 7ce528a826db78275566c368ec1d45fec1014d2513a6edc91edd2049a227aa71 |