You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github无法上传图,可能是内网原因,请看以下具体内容
BaseTable.updater调整:
updater = models.ForeignKey(
to=settings.AUTH_USER_MODEL,
related_query_name="updater_query",
null=True,
verbose_name="更新人",
help_text="更新人",
on_delete=models.SET_NULL,
db_constraint=False
)
django启动报错:
SystemCheckError: System check identified some issues:
ERRORS:
lunarlink.API.creator: (fields.E304) Reverse accessor for 'lunarlink.API.creator' clashes with reverse accessor for 'lunarlink.API.updater'.
HINT: Add or change a related_name argument to the definition for 'lunarlink.API.creator' or 'lunarlink.API.updater'.
lunarlink.API.updater: (fields.E304) Reverse accessor for 'lunarlink.API.updater' clashes with reverse accessor for 'lunarlink.API.creator'.
HINT: Add or change a related_name argument to the definition for 'lunarlink.API.updater' or 'lunarlink.API.creator'.
(其他模型也是报这个错)
然后我尝试了其他方法,但也会有其他的报错,如:
related_query_name="updater_query" 调整为 related_name="%(class)s_updated"
此时可以启动成功,但是其他地方会有报错,如访问项目列表接口报错
Field 'id' expected a number but got <MyUser: wfq100960>.
The text was updated successfully, but these errors were encountered:
github无法上传图,可能是内网原因,请看以下具体内容
BaseTable.updater调整:
updater = models.ForeignKey(
to=settings.AUTH_USER_MODEL,
related_query_name="updater_query",
null=True,
verbose_name="更新人",
help_text="更新人",
on_delete=models.SET_NULL,
db_constraint=False
)
django启动报错:
SystemCheckError: System check identified some issues:
ERRORS:
lunarlink.API.creator: (fields.E304) Reverse accessor for 'lunarlink.API.creator' clashes with reverse accessor for 'lunarlink.API.updater'.
HINT: Add or change a related_name argument to the definition for 'lunarlink.API.creator' or 'lunarlink.API.updater'.
lunarlink.API.updater: (fields.E304) Reverse accessor for 'lunarlink.API.updater' clashes with reverse accessor for 'lunarlink.API.creator'.
HINT: Add or change a related_name argument to the definition for 'lunarlink.API.updater' or 'lunarlink.API.creator'.
(其他模型也是报这个错)
然后我尝试了其他方法,但也会有其他的报错,如:
related_query_name="updater_query" 调整为 related_name="%(class)s_updated"
此时可以启动成功,但是其他地方会有报错,如访问项目列表接口报错
Field 'id' expected a number but got <MyUser: wfq100960>.
The text was updated successfully, but these errors were encountered: