Modified foreign key of event and profile models