[Bug] Exception(de)serializing models with ForeignKeys when loaded outside of 'mount' #732
Open
2 tasks done
Labels
bug
Something isn't working
Bug Description
I'm trying to make a view where the user can select a model and edit it. If I load the model in mount(), this works as expected. However if I try to load the model in another method, it doesn't seem to be able to deserialize it when the user saves (or does anything):
Expected behaviour
Can use a model loaded outside of 'mount'.
Screenshots / Screenrecords
see below
Steps to reproduce
Example repro
The view doesn't really matter but:
Clicking 'save' will cause it to throw the above exception. The Resource.type is a ForeignKey to ResourceType.
This, however, works:
What browsers are you seeing the problem on?
Chrome
👀 Have you checked for similar open issues?
Code of Conduct
Are you willing to work on this issue ?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: