Updating from older version #526
Unanswered
johanboekhoven
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
Worked around it using a for loop, but it doesn't feel great: {% for detail in model_view._details_props %}
{% if detail[0] == 'asset_id' %}
{% set asset_id, asset_id_fmt = model_view.get_detail_value(model, detail[1]) %}
.. template code hereI would to just set a variable somewhere by name and pick it up where ever I need it. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm updating from 0.8.0 to the latest release, and there have been some understandable breaking changes.
But I have a somewhat hard time porting this over to working template code:
{{ model_view.get_attr_value(model, model_view.get_model_atr("asset_id")) }}I know get_attr_value() is replaced with get_prop_value(), but how do I get specific data from the model on a detail page. I want to use specific database fields to add extra data to the details page.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions