是否可以从其他类导入字段? 例如。
class X(models.Model) field1 = models. field2 = models. #Import these fields in to Class Y class Y(models.Model) field3 = models.ForiegnKey('FK') #don't worry about FK field4 = #import here from field 1 field5 = #import here from field 2
先谢谢