Posts Django SystemCheckError System check identified some issues
Post
Cancel

Django SystemCheckError System check identified some issues


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SystemCheckError: System check identified some issues:

ERRORS:
timelines.LikeComment.user: (fields.E304) Reverse accessor for 'timelines.LikeComment.user' clashes with reverse accessor for 'timelines.LikePost.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeComment.user' or 'timelines.LikePost.user'.
timelines.LikeComment.user: (fields.E304) Reverse accessor for 'timelines.LikeComment.user' clashes with reverse accessor for 'timelines.LikeReply.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeComment.user' or 'timelines.LikeReply.user'.
timelines.LikeComment.user: (fields.E305) Reverse query name for 'timelines.LikeComment.user' clashes with reverse query name for 'timelines.LikePost.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeComment.user' or 'timelines.LikePost.user'.
timelines.LikeComment.user: (fields.E305) Reverse query name for 'timelines.LikeComment.user' clashes with reverse query name for 'timelines.LikeReply.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeComment.user' or 'timelines.LikeReply.user'.
timelines.LikePost.user: (fields.E304) Reverse accessor for 'timelines.LikePost.user' clashes with reverse accessor for 'timelines.LikeComment.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikePost.user' or 'timelines.LikeComment.user'.
timelines.LikePost.user: (fields.E304) Reverse accessor for 'timelines.LikePost.user' clashes with reverse accessor for 'timelines.LikeReply.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikePost.user' or 'timelines.LikeReply.user'.
timelines.LikePost.user: (fields.E305) Reverse query name for 'timelines.LikePost.user' clashes with reverse query name for 'timelines.LikeComment.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikePost.user' or 'timelines.LikeComment.user'.
timelines.LikePost.user: (fields.E305) Reverse query name for 'timelines.LikePost.user' clashes with reverse query name for 'timelines.LikeReply.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikePost.user' or 'timelines.LikeReply.user'.
timelines.LikeReply.user: (fields.E304) Reverse accessor for 'timelines.LikeReply.user' clashes with reverse accessor for 'timelines.LikeComment.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeReply.user' or 'timelines.LikeComment.user'.
timelines.LikeReply.user: (fields.E304) Reverse accessor for 'timelines.LikeReply.user' clashes with reverse accessor for 'timelines.LikePost.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeReply.user' or 'timelines.LikePost.user'.
timelines.LikeReply.user: (fields.E305) Reverse query name for 'timelines.LikeReply.user' clashes with reverse query name for 'timelines.LikeComment.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeReply.user' or 'timelines.LikeComment.user'.
timelines.LikeReply.user: (fields.E305) Reverse query name for 'timelines.LikeReply.user' clashes with reverse query name for 'timelines.LikePost.user'.
        HINT: Add or change a related_name argument to the definition for 'timelines.LikeReply.user' or 'timelines.LikePost.user'.
SystemCheckError: System check identified some issues:

Solution

  • 모델 접근오류로 related_name= 을 변경해주면 됨
    • name설정 시 동일하게 적용하지 말고 다르게 적용해야 됌
This post is licensed under CC BY 4.0 by the author.