Canopy stands on internal slot definitions to build the form fields.
We don't want to be like django-fobi that did have too many options for each field types but we will probably needs a little bit of options, like with an Integer field, you would expect to set a minimum and a maximum limit from the Slot options.
Since there would be too many options to modelize from various Django form field or widget, we just can not add them all to the Slot model, so it will need to be stored as JSON.
This leads to a problem, editing JSON is not user friendly at all so we would need something to turn the JSON to virtual fields that can be humanly edited.
There is a very nice frontend module for this with json-editor library. However, it needs to be implemented properly in the Slot form.
There was a Django app for this before with django-admin-json-editor but it is stale since some years, however it may helps to implement again.
Canopy stands on internal slot definitions to build the form fields.
We don't want to be like django-fobi that did have too many options for each field types but we will probably needs a little bit of options, like with an Integer field, you would expect to set a minimum and a maximum limit from the Slot options.
Since there would be too many options to modelize from various Django form field or widget, we just can not add them all to the Slot model, so it will need to be stored as JSON.
This leads to a problem, editing JSON is not user friendly at all so we would need something to turn the JSON to virtual fields that can be humanly edited.
There is a very nice frontend module for this with json-editor library. However, it needs to be implemented properly in the Slot form.
There was a Django app for this before with django-admin-json-editor but it is stale since some years, however it may helps to implement again.