Skip to main content

An amazing form solution

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

===============================
Solution
===============================

.. image:: https://badge.fury.io/py/Solution.png
:target: http://badge.fury.io/py/Solution

.. image:: https://travis-ci.org/lucuma/solution.png?branch=master
:target: https://travis-ci.org/lucuma/solution

.. image:: https://pypip.in/d/Solution/badge.png
:target: https://crate.io/packages/Solution?version=latest


An amazing form solution

* BSD License. See ``LICENSE`` for more details.
* Documentation: http://solution.rtfd.org.

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.


.. :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-3.0.2.tar.gz (31.1 kB view details)

Uploaded Source

File details

Details for the file Solution-3.0.2.tar.gz.

File metadata

  • Download URL: Solution-3.0.2.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Solution-3.0.2.tar.gz
Algorithm Hash digest
SHA256 b5d397a01b8770e4361d627d0672f5a4b3ac75218003788d5964e2db54afa69f
MD5 85d10e8a2aad40f9227fcb61406c0742
BLAKE2b-256 59b1c9a5391d506011c9f874d50ed07cd81adda63e3ff3daebd22d681a8ee38d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page