-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare 0.4.28; fix improperly picked configuration of select_multipl…
…e_model_objects plugin; allowed long identifiers of models; fix admin bulk change of the plugins; control of the submitted value for select_model_object and select_multiple_model_objects; docs updated
- Loading branch information
1 parent
123ca3c
commit 888646c
Showing
24 changed files
with
331 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1387,6 +1387,37 @@ should be constructing your URL to the form as follows: | |
|
||
http://127.0.0.1:8001/fobi/view/test-form/?fobi_initial_data&[email protected]&age=19 | ||
|
||
Submitted form element plugins values | ||
=============================================== | ||
While some values of form element plugins are submitted as is, some others | ||
need additional processing. There are 3 behaviours taken into consideration: | ||
|
||
- "val": value is being sent as is. | ||
- "repr": (human readable) representatio of the value is used. | ||
- "mix": mix of value as is and human readable representation. | ||
|
||
The following plugins have been made configurable in such a way, that | ||
developers can choose the desired behaviour in projects' settings: | ||
|
||
- ``FOBI_FORM_ELEMENT_RADIO_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_MULTIPLE_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_MODEL_OBJECT_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_MULTIPLE_MODEL_OBJECTS_SUBMIT_VALUE_AS`` | ||
|
||
See the README.rst in each of the following plugins for more information. | ||
|
||
- `Radio select (radio button) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/radio/>`__ | ||
- `Select (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select/>`__ | ||
- `Select model object (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select_model_object/>`__ | ||
- `Select multiple (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select_multiple/>`__ | ||
- `Select multiple model objects (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select_multiple_model_objects/>`__ | ||
|
||
Available translations | ||
=============================================== | ||
English is the primary language. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1387,6 +1387,37 @@ should be constructing your URL to the form as follows: | |
|
||
http://127.0.0.1:8001/fobi/view/test-form/?fobi_initial_data&[email protected]&age=19 | ||
|
||
Submitted form element plugins values | ||
=============================================== | ||
While some values of form element plugins are submitted as is, some others | ||
need additional processing. There are 3 behaviours taken into consideration: | ||
|
||
- "val": value is being sent as is. | ||
- "repr": (human readable) representatio of the value is used. | ||
- "mix": mix of value as is and human readable representation. | ||
|
||
The following plugins have been made configurable in such a way, that | ||
developers can choose the desired behaviour in projects' settings: | ||
|
||
- ``FOBI_FORM_ELEMENT_RADIO_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_MULTIPLE_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_MODEL_OBJECT_SUBMIT_VALUE_AS`` | ||
- ``FOBI_FORM_ELEMENT_SELECT_MULTIPLE_MODEL_OBJECTS_SUBMIT_VALUE_AS`` | ||
|
||
See the README.rst in each of the following plugins for more information. | ||
|
||
- `Radio select (radio button) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/radio/>`__ | ||
- `Select (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select/>`__ | ||
- `Select model object (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select_model_object/>`__ | ||
- `Select multiple (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select_multiple/>`__ | ||
- `Select multiple model objects (drop-down) | ||
<https://github.com/barseghyanartur/django-fobi/tree/stable/src/fobi/contrib/plugins/form_elements/fields/select_multiple_model_objects/>`__ | ||
|
||
Available translations | ||
=============================================== | ||
English is the primary language. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__title__ = 'django-fobi' | ||
__version__ = '0.4.27' | ||
__build__ = 0x000030 | ||
__version__ = '0.4.28' | ||
__build__ = 0x000031 | ||
__author__ = 'Artur Barseghyan <[email protected]>' | ||
__copyright__ = '2014-2015 Artur Barseghyan' | ||
__license__ = 'GPL 2.0/LGPL 2.1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
__author__ = 'Artur Barseghyan <[email protected]>' | ||
__copyright__ = 'Copyright (c) 2014 Artur Barseghyan' | ||
__license__ = 'GPL 2.0/LGPL 2.1' | ||
__all__ = ('IGNORED_MODELS',) | ||
__all__ = ('IGNORED_MODELS', 'SUBMIT_VALUE_AS',) | ||
|
||
from fobi.constants import SUBMIT_VALUE_AS_MIX | ||
|
||
IGNORED_MODELS = [] | ||
|
||
SUBMIT_VALUE_AS = SUBMIT_VALUE_AS_MIX |
Oops, something went wrong.