You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if I have a field only visible for admins, and write a heavily customized form where I need to render each widget seperately instead of just iterating over all widgets, I have to check, if the widget actually exists, else I get location errors.
This is only possible with python expressions.
It would be nicer, if w would be a defaultdict which would have advanced logic:
If there is no field with given name, throw the key error
If there is a field, return a mocked content provider that returns an empty string on render.
This way, I can avoid writing python expressions in page templates
The text was updated successfully, but these errors were encountered:
Currently, if I have a field only visible for admins, and write a heavily customized form where I need to render each widget seperately instead of just iterating over all widgets, I have to check, if the widget actually exists, else I get location errors.
This is only possible with python expressions.
It would be nicer, if w would be a defaultdict which would have advanced logic:
This way, I can avoid writing python expressions in page templates
The text was updated successfully, but these errors were encountered: