我有以下字段
target_contenttype = models.ForeignKey(ContentType,
blank=True,
null=True,
related_name="target_object",
on_delete=models.PROTECT,
limit_choices_to={'model__in':( ''
)})在 limit_choices_to 上,我找不到有关如何限制位于不同应用程序上的相关模型的文档。有人可以帮忙吗。
潇潇雨雨
呼啦一阵风
随时随地看视频慕课网APP
相关分类