Inject extra data #619
Unanswered
johanboekhoven
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hey, sqladmin/sqladmin/application.py Line 415 in 3b64b88 And also the template probably needs some changing. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, have yet another question.
I have a standard schema/model and I'm creating a custom listview for it. Now in the custom view I create a custom table for data from another api. What do I need to override to along with the normal listview data also inject some custom data to be used in the template.
In a completely custom view I build the whole template response context where I can add whatever I like. But I'd rather use the default system so I can leverage all default behavior and just add a little bit of extra data to the template.
Looking through the ModeViewMeta source it's not apparent for me where the template calling context is being setup.
Thanks,
-Johan
Beta Was this translation helpful? Give feedback.
All reactions