db.models.ManyToManyField

class ManyToManyField(othermodel, **options) [source]

A many-to-many relationship. Requires a positional argument: the class to which the model is related, which works exactly the same as it does for ForeignKey, including recursive and lazy relationships.

Related objects can be added, removed, or created with the field’s RelatedManager.

doc_Django
2016-10-09 18:35:50
Comments
Leave a Comment

Please login to continue.