1👍
✅
Let me guess the value you put is the session id that’s why the system telling you Cannot assign "5.0": "meterdata.session" must be a "session" instance
. If this problem occur, telling about the instance
, just add id
in the variable to make it equal in your value like this session_id
.
Other solution, so that you will not get that instance
error, don’t use the id.
Ex.
<select>
{% for session in sessions %}
<option value="{{ session }}">{{ session }}</option>
{% endfor %}
</select>
As you noticed, I didn’t use the session.id instead I use session only
. This is the difference between instance and not instance.
Source:stackexchange.com