阅读背景:

是否可以在Django中使用GenericForeignKey的自然键?

来源:互联网 

I have the following:

我有以下内容:

target_content_type = models.ForeignKey(ContentType, related_name='target_content_type')
target_object_id = models.PositiveIntegerField()
target = generic.GenericForeignKey('target_content_type', 'target_object_id')
target_conten



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: