[Fixed]-GenericForeignKeys in Intermediate Models

1👍

Do not use ManyToManyField when using GenericForeignKey in your intermediate model; instead, use GenericRelation, so your groups field would be simply declared as:

groups = generic.GenericRelation(Permissions)

See reverse generic relations for more details.

Leave a comment