The best option is
chart = Chart('Some name')
chart.element = element
Assign a direct object to the ship relationship. If you assign element_id, then until it is reset, it will be in memory. Internally, it calls a request SELECT * FROM ELEMENT WHERE ELEMENT.id = element_id, but the element_id data is not stored or will be in memory.
So, I suggest a direct destination if you do not want to hide.
Hope this helps you.