比如我想做一个评论 app ,假如我不使用 generic relation,如何做到这个评论 app 可以用于任何 Model?
认证高级PHP讲师
You can use ManyToManyField on the model to point to Comment
Why not use GenericForeignKey? It’s a very useful thing.
You can use ManyToManyField on the model to point to Comment
Why not use GenericForeignKey? It’s a very useful thing.