Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为“活动”的表,对于每个活动,我可以有零个或多个前辈。
我需要的是在这个表中有一个 ManyToManyField,链接到自身,并存储前一个活动的 id。
有没有人可以帮助解决这个问题?
提前致谢!
predecessor = models.ManyToManyField('self', symmetrical=False, null=True, blank=True)