-
Hello, I'm going forward with my plugin. Now I want to implement saving of bulk plugin schemas to the database as templates for later usage. Now my question is, how can I do this? Ideally I'd like to have a custom form for inputing a schema for the bulk creation, as I later plan to replace the textarea for the yml input with some more advanced editor like Monaco or a json visual editor. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I think I found the But I still have one question leftHow do migrations work? I created a folder EDITsee #3549 for reference |
Beta Was this translation helpful? Give feedback.
I think I found the
AppMixin
which is suitable for custom models. I took a look at @matmair 's plugins (ShopifyIntegrationPlugin and inventree-zapier). One tricky part is theNAME
must be equal to the folder in which the main module lives and not the filename, otherwise we get anmissing AppConfig mixin
error from Django.But I still have one question left
How do migrations work? I created a folder
migrations
like its in the ShopifyPlugin, but if I invokemigrate
the migrations won't be applied. You can take a look at my current files at my repo.EDIT
see #3549 for reference