1 回答

胡子哥哥
TA貢獻1825條經驗 獲得超6個贊
在專業類里面定義一個默認的__unicode__(self)方法,參考以下偽代碼 def __unicode__(self): dreturn ('學校:%s,學院:%s,專業:%s' %(self.學院.學校,self.學院,self.專業))
- 1 回答
- 0 關注
- 3019 瀏覽
添加回答
舉報
0/150
提交
取消