Is there a way to add a field to a model without actually including the field on the model itself?

For example, I am making an ‘invite users’ feature and would like to use a Boolean Field to keep track of who has accepted their invites. I don’t want to create a field like invite_accepted on the model itself since they might not have joined via an invite.

Is this possible to do with a proxy model or a manager?

My hunch is creating a table with a foreign key relationship to the user that tracks just this value is probably the best way.

Follow your hunch. You seem to have figured it out

1 Like