我正在從Django1.7-> Django1.8升級我的應用程序,但我無法進行任何更改,甚至無法運行遷移,因爲每當我看到以下系統錯誤試圖在1.8環境中執行任何遷移操作升級到Django1.8 - 無效related_name的字段
ERRORS:
content.Content.polymorphic_ctype: (fields.E306) The name 'polymorphic_content.content_set' is invalid related_name for field Content.polymorphic_ctype
HINT: Related name must be a valid Python identifier or end with a '+'
content.Tag.polymorphic_ctype: (fields.E306) The name 'polymorphic_content.tag_set' is invalid related_name for field Tag.polymorphic_ctype
HINT: Related name must be a valid Python identifier or end with a '+'
promotion.PZoneOperation.polymorphic_ctype: (fields.E306) The name 'polymorphic_promotion.pzoneoperation_set' is invalid related_name for field PZoneOperation.polymorphic_ctype
HINT: Related name must be a valid Python identifier or end with a '+'
reviews.MediaItem.polymorphic_ctype: (fields.E306) The name 'polymorphic_reviews.mediaitem_set' is invalid related_name for field MediaItem.polymorphic_ctype
HINT: Related name must be a valid Python identifier or end with a '+'
的問題是,這些應用程序的3依賴的一部分,並且已經更新了3場的related_name
在0001_initial.py
遷移與+
結束,但由於系統錯誤,我無法恢復原狀。如何進行更新時遇到種種損失。