我不确定为什么会收到此警告;很可能是我不完全理解这个related_name
概念,但我认为不同rel_types
会使上述模型不模棱两可/冲突......
我在 neo4django 中收到以下警告:
>>> from evidences.models import *
/[...]/neo4django/db/models/relationships.py:180: UserWarning: `evidence` and `evidence` share a relationship type and direction. Is this what you meant to do?
% (r.name, name))
/[...]/neo4django/db/models/relationships.py:180: UserWarning: `families` and `families` share a relationship type and direction. Is this what you meant to do?
% (r.name, name))
相关模型可以在这里找到:https ://gist.github.com/szabi/e57f23d76b885d604a36
我认为关系类型和目标模型在具有相同related_name
.
使用 Django 1.4,来自 git 的 neo4django 当前。
有任何想法吗?