📜  django related_name 抽象类 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:04.086000             🧑  作者: Mango

代码示例1
# use '%(app_label)' and '%(class)'
owner = models.ForeignKey(
  TaskUser,
  related_name="%(app_label)s_%(class)s_ownership",
)