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
Hi, I'd like to automate some things by creating some entries in the database from code, but I'd like to do it through flask-admin's forms because they do some additional processing on posting. Like Media_Entry that holds images and generates thumbnails on post.
So the question is, how can I instantiate, fill and submit a form\view completely from code? Also passing an image file data to it.
Basically I want to create a multi-image upload view, which instead of connecting multiple images to one db entry will generate multiple entries with common parameters selected by the user, like prefix to generated names.
So far this is what I managed to come up with but it's clearly not right:
Hi, I'd like to automate some things by creating some entries in the database from code, but I'd like to do it through flask-admin's forms because they do some additional processing on posting. Like Media_Entry that holds images and generates thumbnails on post.
So the question is, how can I instantiate, fill and submit a form\view completely from code? Also passing an image file data to it.
Basically I want to create a multi-image upload view, which instead of connecting multiple images to one db entry will generate multiple entries with common parameters selected by the user, like prefix to generated names.
So far this is what I managed to come up with but it's clearly not right:
Thanks!
The text was updated successfully, but these errors were encountered: