You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an Event Model and an Account Model. When I want to create a new Event, I would like to store at the same time in the Account Model the reference to the event. from_ is the Account who initiated the event and to_ is the Account who received the event. However, this only works when I set the related_name to different names. Is there a way to get around this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I need some help on the following:
I have an Event Model and an Account Model. When I want to create a new Event, I would like to store at the same time in the Account Model the reference to the event.
from_
is the Account who initiated the event andto_
is the Account who received the event. However, this only works when I set therelated_name
to different names. Is there a way to get around this?Beta Was this translation helpful? Give feedback.
All reactions