I ahve a multi tenant Django database. All my multi tenant enabled models import from a class AccountSpecificModel
, which as a FK to a class Account
. Now I have some unique=True
and unqiue_together
in Meta
, which do not specify account
.
In my scenario, for AccountSpecificModel
uniqueness has no menaing unless it takes care of account
, which means I want to convert each unique
to a unique_together
with account
, and simlar for unique_together
.
How can I do this?