ManyToManyField.swappable
Controls the migration frameworkâs reaction if this ManyToManyField
is pointing at a swappable model. If it is True
- the default - then if the ManyToManyField
is pointing at a model which matches the current value of settings.AUTH_USER_MODEL
(or another swappable model setting) the relationship will be stored in the migration using a reference to the setting, not to the model directly.
You only want to override this to be False
if you are sure your model should always point towards the swapped-in model - for example, if it is a profile model designed specifically for your custom user model.
If in doubt, leave it to its default of True
.
ManyToManyField
does not support validators
.
null
has no effect since there is no way to require a relationship at the database level.
Please login to continue.