Replies: 2 comments 2 replies
-
I switched my form from POST to GET and used Still everything looks odd, but I can work on the POC.... |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lippoliv did you get any further with this? When you say "context" - do you mean within the template itself, for the custom rendering? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I followed https://docs.inventree.org/en/latest/extend/plugins/navigation/ to add a new navigation item but I don't know how to get a proper context (spoiler: its not
request.context
). I thought it doesn't matter right now because I just want a text input, but on form submit (POC implementation) I am not logged in any longer.Screenshots
POC Code
Goal
In
import_view
I want to render a simple form with just an text input. On submit it should be handed over toimport_run
where I execute some code (or enqueue a background job, idk right now). That's it for the POC.Beta Was this translation helpful? Give feedback.
All reactions