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.
有没有办法声明这种情况以使其有效?我希望代码是不言自明的。
class A(Model): many_to_one = models.ForeignKey(B) (...) class B(A): (...)
class A(Model): many_to_one = models.ForeignKey('B') (...) class B(A): (...)