ForeignKey to abstract class (generic relations)

后端 未结 4 1361
长情又很酷
长情又很酷 2020-12-24 04:41

I\'m building a personal project with Django, to train myself (because I love Django, but I miss skills). I have the basic requirements, I know Python, I carefully read the

4条回答
  •  悲&欢浪女
    2020-12-24 05:01

    An actual service can only be on one node, right? In that case when not have a field

    node = models.ForeignKey('node', related_name='services')
    

    in the service class?

提交回复
热议问题