我正在从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
迁移与+
结束,但由于系统错误,我无法恢复原状。如何进行更新时遇到种种损失。