‘Machine tags’ referencing model instances in Django

前端 未结 1 984
误落风尘
误落风尘 2020-12-22 08:46

Example problem

Say, you have models Publication, Photo, Event and Person; they could relate to each other in d

相关标签:
1条回答
  • 2020-12-22 09:19

    I don't think the use of tagging is appropriate for representing relationships. Of course, it all depends on what kind of queries you want to perform. For regular navigation queries, regular n:m relations should be used. Tagging should be used when the information structure is now known upfront.

    0 讨论(0)
提交回复
热议问题