django --fields.E304 错误解决方案

时间:2022-04-06 06:11:22

今天在同一个表里,有多个不同的用户集时出现。

  • fields.E304: Field name <field name> *es with accessor for <fieldname>.

网上解决方案,增加不同的related_name解决。

http://blog.csdn.net/meylovezn/article/details/46924893

related_name will be a unique column in db table, so a model cannot have two or more outgoing relations with the same name.