v6 HasOneCreateAssociationMixin ignore the foreign key #16690
Unanswered
ghost
asked this question in
Help & Questions
Replies: 1 comment
-
This was fixed in #15756, in v7 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In v6, the
HasManyCreateAssociationMixin
lets you ignore the foreign key, but theHasOneCreateAssociationMixin
does not. Is there any way around this?e.g. I have this in my Model class:
which lets me call it without specifying the
user_id
since the parent recorduser
already has it:But I can't seem to find a way to do that here:
so that I can do:
Beta Was this translation helpful? Give feedback.
All reactions