我有以下字段
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 上,我找不到有关如何限制位于不同应用程序上的相关模型的文档。有人可以帮忙吗。
呼啦一阵风
相关分类